https://github.com/3rd/js-benchmark-tool-comparison
Benchmarking experiments
https://github.com/3rd/js-benchmark-tool-comparison
Last synced: about 1 year ago
JSON representation
Benchmarking experiments
- Host: GitHub
- URL: https://github.com/3rd/js-benchmark-tool-comparison
- Owner: 3rd
- Created: 2023-06-16T11:34:18.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-05T21:55:05.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T12:12:18.935Z (about 1 year ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmarking experiments
This is an exploration of how benchmarking works in the JS world.
My plan is to try out and compare all the available benchmarking tools,
mostly to make sure [ZodBus](https://github.com/3rd/zodbus) and other event bus / emitter libraries
are benchmarked properly.
## What are we testing?
- [Benchmark.js](https://github.com/bestiejs/benchmark.js)
- [mitata](https://github.com/evanwashere/mitata)
- [tinybench](https://github.com/tinylibs/tinybench)
- [benchmate](https://github.com/3rd/benchmate)
The engines are configured in [./src/runner.mjs](./src/runner.mjs)
The test files are located in [./src/tests/*](./src/tests)
### Trying it out on your own machine (Linux)
```sh
git clone https://github.com/3rd/js-benchmark-tool-comparison
cd js-benchmark-tool-comparison
pnpm install
npm run benchmark
```
### Latest results
I'll be updating the results of the benchmarks here: [./latest.txt](latest.txt)
Environment:
- OS: Linux
- Node: v18.16.0
- CPU: AMD Ryzen 9 3950X (32) @ 3.500GHz