Benchmark comparing BullMQ performance on Node.js vs Bun runtimes.
# Using npm
npm install
# Using Bun (faster)
bun installThere are two benchmark scripts:
benchmark.js- Simple JavaScript benchmarkruntime-comparison.ts- Comprehensive TypeScript benchmark with more tests
# Node.js
npm run bench:node
# Bun
npm run bench:bun# Node.js (using tsx)
npm run bench:node:ts
# Bun
npm run bench:bun:ts- Job Addition - Adding 1000 jobs individually using
Queue.add() - Bulk Addition - Adding 5000 jobs at once using
Queue.addBulk() - Job Processing - Processing 1000 jobs with concurrency=10
- Flow Producer - Creating 100 flows with 2 children each
REDIS_HOST- Redis host (default:localhost)
MIT