Skip to content

Commit b998045

Browse files
committed
docs(readme): update benchmark results with real stuff
1 parent df13753 commit b998045

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -303,24 +303,29 @@ Jobs must:
303303

304304
## Benchmarks
305305

306-
Performance comparison with BullMQ measuring pure dequeue overhead (jobs are no-ops). Results are averaged over 3 runs:
306+
Performance comparison with BullMQ using realistic jobs (5ms simulated work per job):
307307

308308
| Jobs | Concurrency | @boringnode/queue | BullMQ | Diff |
309309
|------|-------------|-------------------|--------|--------------|
310-
| 100 | 1 | 15ms | 23ms | 34.8% faster |
311-
| 100 | 5 | 24ms | 18ms | 33.3% slower |
312-
| 100 | 10 | 16ms | 17ms | ~same |
313-
| 1000 | 1 | 171ms | 135ms | 26.7% slower |
314-
| 1000 | 5 | 106ms | 55ms | 92.7% slower |
315-
| 1000 | 10 | 88ms | 57ms | 54.4% slower |
316-
| 5000 | 1 | 495ms | 615ms | 19.5% faster |
317-
| 5000 | 5 | 342ms | 253ms | 35.2% slower |
318-
| 5000 | 10 | 456ms | 234ms | 94.9% slower |
319-
320-
These numbers represent queue overhead only. With real job execution, the difference becomes negligible.
310+
| 100 | 1 | 562ms | 596ms | 5.7% faster |
311+
| 100 | 5 | 116ms | 117ms | ~same |
312+
| 100 | 10 | 62ms | 62ms | ~same |
313+
| 500 | 1 | 2728ms | 2798ms | 2.5% faster |
314+
| 500 | 5 | 565ms | 565ms | ~same |
315+
| 500 | 10 | 287ms | 288ms | ~same |
316+
| 1000 | 1 | 5450ms | 5547ms | 1.7% faster |
317+
| 1000 | 5 | 1096ms | 1116ms | 1.8% faster |
318+
| 1000 | 10 | 565ms | 579ms | 2.4% faster |
321319

322320
Run benchmarks yourself:
323321

324322
```bash
323+
# Realistic benchmark (5ms job duration)
324+
npm run benchmark -- --realistic
325+
326+
# Pure dequeue overhead (no-op jobs)
325327
npm run benchmark
328+
329+
# Custom job duration
330+
npm run benchmark -- --duration=10
326331
```

0 commit comments

Comments
 (0)