Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
> eventemitter3@2.0.2 benchmark /home/6pm/javascript/6pm/emit/eventemitter3
> find benchmarks/run -name '*.js' -exec benchmarks/start.sh {} \;
Starting benchmark context.js
EventEmitter1 x 6,747,048 ops/sec ±0.34% (87 runs sampled)
EventEmitter2 x 2,369,615 ops/sec ±0.22% (93 runs sampled)
EventEmitter3@0.1.6 x 11,276,491 ops/sec ±0.15% (92 runs sampled)
Emit x 13,759,536 ops/sec ±0.20% (94 runs sampled)
EventEmitter3(master) x 11,855,077 ops/sec ±0.27% (86 runs sampled)
Drip x 2,206,621 ops/sec ±0.69% (91 runs sampled)
fastemitter x 1,782,904 ops/sec ±0.83% (92 runs sampled)
event-emitter x 2,038,945 ops/sec ±0.68% (91 runs sampled)
contra/emitter x 46,390 ops/sec ±0.88% (93 runs sampled)
Fastest is Emit
Starting benchmark emit.js
EventEmitter1 x 12,278,943 ops/sec ±0.20% (87 runs sampled)
EventEmitter2 x 2,709,153 ops/sec ±0.68% (91 runs sampled)
EventEmitter3@0.1.6 x 11,257,675 ops/sec ±0.52% (92 runs sampled)
Emit x 13,819,841 ops/sec ±0.16% (92 runs sampled)
EventEmitter3(master) x 11,890,834 ops/sec ±0.18% (92 runs sampled)
Drip x 2,371,207 ops/sec ±0.80% (91 runs sampled)
fastemitter x 1,905,381 ops/sec ±0.82% (91 runs sampled)
event-emitter x 2,042,698 ops/sec ±0.76% (91 runs sampled)
contra/emitter x 47,308 ops/sec ±0.75% (93 runs sampled)
Fastest is Emit
Starting benchmark hundreds.js
EventEmitter1 x 286,451 ops/sec ±0.81% (90 runs sampled)
EventEmitter2 x 156,271 ops/sec ±0.83% (90 runs sampled)
EventEmitter3@0.1.6 x 294,106 ops/sec ±0.58% (90 runs sampled)
EventEmitter3(master) x 285,813 ops/sec ±0.48% (92 runs sampled)
Emit x 365,090 ops/sec ±0.44% (92 runs sampled)
Drip x 359,310 ops/sec ±0.44% (94 runs sampled)
fastemitter x 380,794 ops/sec ±0.45% (92 runs sampled)
event-emitter x 136,365 ops/sec ±0.72% (92 runs sampled)
contra/emitter x 19,688 ops/sec ±0.88% (90 runs sampled)
Fastest is fastemitter
Starting benchmark init.js
EventEmitter1 x 32,712,483 ops/sec ±1.05% (90 runs sampled)
EventEmitter2 x 26,989,464 ops/sec ±1.25% (90 runs sampled)
EventEmitter3@0.1.6 x 88,215,928 ops/sec ±1.08% (88 runs sampled)
EventEmitter3(master) x 83,919,570 ops/sec ±0.80% (90 runs sampled)
Emit x 87,824,081 ops/sec ±1.10% (88 runs sampled)
Drip x 87,561,304 ops/sec ±2.35% (87 runs sampled)
fastemitter x 9,470,248 ops/sec ±0.84% (90 runs sampled)
event-emitter x 398,335 ops/sec ±0.73% (89 runs sampled)
contra/emitter x 660,912 ops/sec ±4.37% (49 runs sampled)
Fastest is EventEmitter3@0.1.6,Emit,Drip
Starting benchmark listeners.js
EventEmitter1 x 6,538,309 ops/sec ±0.70% (92 runs sampled)
fastemitter x 3,133,315 ops/sec ±1.00% (87 runs sampled)
EventEmitter3@0.1.6 x 6,456,195 ops/sec ±0.98% (91 runs sampled)
EventEmitter3(master) x 6,100,438 ops/sec ±0.68% (94 runs sampled)
Emit x 6,072,501 ops/sec ±0.71% (89 runs sampled)
Fastest is EventEmitter1
Starting benchmark listening.js
EventEmitter1 x 5,067,863 ops/sec ±1.57% (89 runs sampled)
EventEmitter2 x 1,226,940 ops/sec ±0.99% (93 runs sampled)
EventEmitter3@0.1.6 x 1,879,900 ops/sec ±0.97% (87 runs sampled)
EventEmitter3(master) x 14,547,454 ops/sec ±5.34% (88 runs sampled)
Emit x 15,475,107 ops/sec ±5.44% (85 runs sampled)
Drip x 25,651,934 ops/sec ±0.73% (93 runs sampled)
fastemitter x 10,834,862 ops/sec ±0.87% (93 runs sampled)
event-emitter x 1,870,899 ops/sec ±1.18% (92 runs sampled)
contra/emitter x 5,376,344 ops/sec ±1.64% (87 runs sampled)
Fastest is Drip
Starting benchmark multiple-emitters.js
EventEmitter1 x 2,842,499 ops/sec ±0.37% (88 runs sampled)
EventEmitter2 x 573,872 ops/sec ±0.79% (89 runs sampled)
EventEmitter3@0.1.6 x 956,119 ops/sec ±0.83% (87 runs sampled)
EventEmitter3(master) x 3,533,547 ops/sec ±0.37% (90 runs sampled)
Emit x 3,206,956 ops/sec ±0.26% (91 runs sampled)
Drip:
fastemitter x 1,103,864 ops/sec ±0.76% (92 runs sampled)
event-emitter x 304,209 ops/sec ±0.78% (92 runs sampled)
contra/emitter x 45,524 ops/sec ±0.82% (90 runs sampled)
Fastest is EventEmitter3(master)
Starting benchmark once.js
EventEmitter1 x 2,226,525 ops/sec ±0.72% (92 runs sampled)
EventEmitter2 x 900,093 ops/sec ±1.58% (85 runs sampled)
EventEmitter3@0.1.6 x 1,575,436 ops/sec ±2.50% (86 runs sampled)
EventEmitter3(master) x 12,456,174 ops/sec ±5.21% (84 runs sampled)
Emit x 12,957,660 ops/sec ±4.61% (89 runs sampled)
Drip x 5,507,961 ops/sec ±1.53% (90 runs sampled)
fastemitter x 3,530,191 ops/sec ±1.27% (88 runs sampled)
event-emitter x 1,221,029 ops/sec ±1.12% (88 runs sampled)
contra/emitter x 269,128 ops/sec ±0.94% (91 runs sampled)
Fastest is Emit
Starting benchmark remove-emit.js
EventEmitter1 x 4,128,202 ops/sec ±0.17% (91 runs sampled)
EventEmitter2 x 1,790,179 ops/sec ±0.81% (90 runs sampled)
EventEmitter3@0.1.6 x 2,972,819 ops/sec ±0.15% (89 runs sampled)
EventEmitter3(master) x 2,935,660 ops/sec ±0.18% (94 runs sampled)
Emit x 5,062,524 ops/sec ±0.26% (93 runs sampled)
Drip x 2,568,025 ops/sec ±0.93% (88 runs sampled)
fastemitter:
event-emitter x 1,656,407 ops/sec ±0.76% (91 runs sampled)
contra/emitter x 50,272 ops/sec ±0.49% (91 runs sampled)
Fastest is Emit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment