Commit | Line | Data |
---|---|---|
be0676b3 APA |
1 | # Poolifier Benchmarks |
2 | ||
3 | Welcome to poolifier benchmarks and thanks to look into this project. | |
4 | ||
5 | ## Folder Structure | |
6 | ||
f7a81082 JB |
7 | The [internal](./internal) folder contains poolifier internal benchmarks. |
8 | The [versus-external-pools](./versus-external-pools) folder contains benchmarks versus other Node.js pools. | |
be0676b3 APA |
9 | |
10 | ## Poolifier vs other pools benchmark | |
11 | ||
6ed0e2d4 | 12 | To compare poolifier pools performance vs other pools performance we chose to use [hyperfine](https://github.com/sharkdp/hyperfine). |
af03108f | 13 | We chose to use this tool because it allows to run isolated Node.js processes so each pool does not impact each other. |
0c757ef3 | 14 | |
af03108f JB |
15 | - External pools with which we compared the poolifier results: |
16 | ||
17 | - [piscina](https://github.com/piscinajs/piscina) | |
18 | - [tinypool](https://github.com/tinylibs/tinypool) | |
19 | - [workerpool](https://github.com/josdejong/workerpool) | |
20 | - [worker-nodes](https://github.com/allegro/node-worker-nodes) | |
21 | - [node-worker-threads-pool](https://github.com/SUCHMOKUO/node-worker-threads-pool) | |
be0676b3 | 22 | |
7a21a451 | 23 | Those are our results: |
be0676b3 | 24 | |
7a21a451 | 25 | - CPU Intensive task with 100k operations submitted to each pool [BENCH-100000.md](./versus-external-pools/BENCH-100000.md). |
be0676b3 | 26 | |
af03108f | 27 | - External pools with which we used to compare the poolifier results: |
ae43d349 | 28 | |
af03108f | 29 | <!-- - [node-worker-threads-pool](https://github.com/SUCHMOKUO/node-worker-threads-pool): removed because it does not support dynamic modules import or import outside the worker function. The worker function is expected to be self-contained, which makes it difficult to use in real world application without ugly hacks. --> |
bea2d6e3 | 30 | |
af03108f JB |
31 | - [worker-threads-pool](https://github.com/watson/worker-threads-pool): removed because unmaintained since more than 4 years. |
32 | - [threadwork](https://github.com/kevlened/threadwork): removed because unmaintained since more than 3 years. | |
33 | - [microjob](https://github.com/wilk/microjob): removed because unmaintained since more than 5 years. | |
34 | - [threads.js](https://github.com/andywer/threads.js/): removed because not a threads pool. | |
be0676b3 | 35 | |
7a21a451 JB |
36 | > :warning: **We would need funds to run our benchmarks more often and on Cloud VMs, please consider to sponsor this project** |
37 | ||
be0676b3 APA |
38 | ### Internal |
39 | ||
e69ff124 | 40 | To run the internal benchmarks, you just need to navigate to the root of poolifier project and run `pnpm benchmark` |
be0676b3 APA |
41 | |
42 | ## Versus other pools | |
43 | ||
1fe22d16 | 44 | Read [README.md](./versus-external-pools/README.md) |