Benchmarks and performance enhancements (#209)
[poolifier.git] / benchmarks / README.md
CommitLineData
be0676b3
APA
1# Poolifier Benchmarks
2
3Welcome to poolifier benchmarks and thanks to look into this project.
4
5## Folder Structure
6
7The internal folder contains poolifier internal benchmarks.
8The versus-external-pools folder contains benchmarks versus other Node.js pools.
9
10## Poolifier vs other pools benchmark
11
12To compare poolifier pools performance vs other pools performance we chose to use [hyperfine](https://github.com/sharkdp/hyperfine).
13We chose to use this tool because it allows to run isolated Node.js processes so that each pool does not impact each other.
14
15We will add more details on each function that we benchmark.
16
17Those are our results:
18
19- CPU Intensive task with 100k operations submitted to each pool [BENCH-100000.MD](./versus-external-pools/BENCH-100000.MD)
20
21## How to run benchmarks
22
23### Internal
24
25To run the internal benchmark you just need to navigate to the root of poolifier project and run `npm run benchmark`
26
27## Versus other pools
28
29To run the benchmark versus other pools you will need to:
30
31- [Install hyperfine](https://github.com/sharkdp/hyperfine#installation)
32- Run the `./bench.sh` into the `versus-external-pools` folder