1. Docs
  2. Performance

Private state · less overhead

The fastest js-queue yet.

Install it. Don’t rebuild it.

3.0.0 → 3.1.0

Private fields win.

Same FIFO API. No tuning.

Constructing 100,000 queues: version 3.0.0 took 81.22 milliseconds and version 3.1.0 took 4.09 milliseconds, 19.86 times faster.
Scheduling and draining 100,000 tasks: version 3.0.0 took 6.82 milliseconds and version 3.1.0 took 4.83 milliseconds, 1.41 times faster.
Fastest in this benchmark. Easiest in your code.

Install. Add tasks. Ship.

Reproduce it

One command.

npm run benchmark