Live data from Hacker News

Show HN: Mitata – Benchmarking tooling for JavaScript

github.com

1–10 of 27 posts

Show HN: Mitata – Benchmarking tooling for JavaScript

#1
I always had a sweet tooth for how easy it is to use google/benchmark, but when working with js, current libraries didn't feel right and some were not even accurate enough, so I decided to create my own library to make JavaScript benchmarking tooling better.

With more free time, I finally implemented all features I wished for in 1.0.0 and made a lightweight C++ single-header version for moments when google/benchmark is too much.

Hope this library helps you as much as it does me.

Show HN: Mitata – Benchmarking tooling for JavaScript
github.com

Re: Show HN: Mitata – Benchmarking tooling for JavaScript

#3
post #2

This is for "headless" JavaScript outside the browser, right?

It works anywhere where javascript works, so you can easily run it in browser too. Tho idea of making jsbench like website but with mitata accuracy (+ dedicated runners) keeps bugging me.

Re: Show HN: Mitata – Benchmarking tooling for JavaScript

#6
Wow, I was just looking how to benchmark a streaming JSON parser that I'm working on! I'm creating it specifically for performance-intensive situations with JSON strings sizes up to gigabytes, and I thought that I had to implement about half of the features you mention there, like parametrisation and automatic GC after every test.

Re: Show HN: Mitata – Benchmarking tooling for JavaScript

#8
post #4

Any plans for web compatible output? I maintain this repo, and we hand roll the stats page, but if we could get that for free it’d be so great! https://github.com/moltar/typescript-runtime-type-benchmarks

I have been thinking of reusing/creating something like https://perf.rust-lang.org/ that lets you pick and compare specific hash/commit with all data from json format

Re: Show HN: Mitata – Benchmarking tooling for JavaScript

#9
post #7
post #5

wow! what a timing! I started building Speedrun yesterday to accommodate my daily needs https://toolkit.pavi2410.me/tools/speedrun https://github.com/pavi2410/toolkit/issues/8

do you support running the benchmark in a web worker?

yes, you can import mitata inside web worker and run it there, if you only need raw results you can even use lower level api https://github.com/evanwashere/mitata?tab=readme-ov-file#giv...
Post reply on HN