primus / eventemitter3

EventEmitter3 - Because there's also a number 2. And we're faster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add 'tseep' to benchmarks

Morglod opened this issue · comments

@Morglod, Good job!

@Morglod Can you please test it if it works for you?

@Romick2005 yep, thank you!)
Did not believe my eyes first when tested on arm64, its 5x times faster

(macos m1, emit-multiple-listeners.js)

rosetta:

EventEmitter3 x 5,918,681 ops/sec ±0.18% (92 runs sampled)
tseep x 40,511,592 ops/sec ±0.15% (95 runs sampled)

arm64 native:

EventEmitter3@0.1.6 x 8,632,438 ops/sec ±0.27% (95 runs sampled)
EventEmitter3(master) x 10,556,285 ops/sec ±0.41% (97 runs sampled)
tseep x 208,070,639 ops/sec ±0.27% (100 runs sampled)

Full results:
arm64_bench.txt