tinybench
tinybench copied to clipboard
🔎 A simple, tiny and lightweight benchmarking library!
I don't know what causes this, but all results seem completely off-bounds. # Reproduction ```js /* eslint-disable no-console */ import { Bench } from "tinybench"; const suite = new Bench({...
**Problem:** I wrote a benchmark to compare file crawling and get quite different results compared to e.g. [benchmark](https://github.com/bestiejs/benchmark.js). With benchmark I'm able to run tests in sequence so they can...
I don't think the warmup time for tinybench is anywhere near adequate to getting V8 to settle the code. 'Solving' that problem by deoptimizing tinybench is fighting the wrong fight....
Idea
Hi, I have been trying to run a benchmark on crypto.randomUUID vs uuid.v4() function. I hit the following error: ``` [redacted]/test-bench/node_modules/tinybench/dist/index.cjs:386 "ops/sec": parseInt(e.hz.toString(), 10).toLocaleString(), ^ TypeError: Cannot read properties of...
I notice there have been several commits that de-optimize parts of tinybench because someone saw that it was fouling their benchmarks. I feel like the NodeJS situation is tricky enough...
fix for #61 Change order of operations to - emit error event if it exists - calculate results - call teardown hook - emit cycle event I'm not sure why...
Example: https://gitlab.com/gitlab-org/gl-performance ## Upvote & Fund - We're using [Polar.sh](https://polar.sh/tinylibs) so you can upvote and help fund this issue. - We receive the funding once the issue is completed &...
https://github.com/tinylibs/tinybench/blob/v2.5.0/src/bench.ts#L11 https://github.com/tinylibs/tinybench/blob/v2.5.0/src/task.ts#L4 I suggest leaving only the `import Task` in the branch After approval, I can create a PR (with backward compatibility, of course, as far as possible)
This is a feature request. You can close this as "Not planned" and I won't feel bad, don't worry ❤️ I think that the current setup with an `examples/` folder...