File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,3 +212,27 @@ Jobs must:
212212- Have a static ` jobName ` property
213213- Implement the ` execute ` method
214214- Be exported as default
215+
216+ ## Benchmarks
217+
218+ Performance comparison with BullMQ measuring pure dequeue overhead (jobs are no-ops). Results are averaged over 3 runs:
219+
220+ | Jobs | Concurrency | @boringnode/queue | BullMQ | Diff |
221+ | ------| -------------| -------------------| --------| --------------|
222+ | 100 | 1 | 15ms | 23ms | 34.8% faster |
223+ | 100 | 5 | 24ms | 18ms | 33.3% slower |
224+ | 100 | 10 | 16ms | 17ms | ~ same |
225+ | 1000 | 1 | 171ms | 135ms | 26.7% slower |
226+ | 1000 | 5 | 106ms | 55ms | 92.7% slower |
227+ | 1000 | 10 | 88ms | 57ms | 54.4% slower |
228+ | 5000 | 1 | 495ms | 615ms | 19.5% faster |
229+ | 5000 | 5 | 342ms | 253ms | 35.2% slower |
230+ | 5000 | 10 | 456ms | 234ms | 94.9% slower |
231+
232+ These numbers represent queue overhead only. With real job execution, the difference becomes negligible.
233+
234+ Run benchmarks yourself:
235+
236+ ``` bash
237+ npm run benchmark
238+ ```
You can’t perform that action at this time.
0 commit comments