Skip to content

Instantly share code, notes, and snippets.

@Hypercubed
Last active May 17, 2016 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hypercubed/ee368fbe407f7f49f2ae4ef3a0a9b60d to your computer and use it in GitHub Desktop.
Save Hypercubed/ee368fbe407f7f49f2ae4ef3a0a9b60d to your computer and use it in GitHub Desktop.
EventsSpeedTests emit objects

Chrome 50.0.2661.102 on OS X 10.11.2

emit objects

EventEmitter ................................... 184,353 op/s
EventEmitter2 .................................. 1,366,034 op/s
EventEmitter3 .................................. 4,718,065 op/s
RXJS ........................................... 1,388,534 op/s
ReactiveProperty ............................... 5,766,001 op/s
JS-Signals ..................................... 175,555 op/s
MiniSignals .................................... 7,137,051 op/s
signal-emitter ................................. 247,021 op/s
event-signal ................................... 1,999,738 op/s
signal-lite .................................... 6,371,203 op/s
EventDispatcher ................................ 2,499,404 op/s

Theoretical max ................................ 7,825,576 op/s

Fastest is MiniSignals

Node.js 6.1.0 on Darwin 64-bit

emit objects

EventEmitter ................................... 2,997,675 op/s
EventEmitter2 .................................. 1,543,403 op/s
EventEmitter3 .................................. 4,596,726 op/s
RXJS ........................................... 1,353,248 op/s
ReactiveProperty ............................... 5,330,796 op/s
JS-Signals ..................................... 181,073 op/s
MiniSignals .................................... 6,404,479 op/s
signal-emitter ................................. 243,129 op/s
event-signal ................................... 1,930,881 op/s
signal-lite .................................... 5,985,574 op/s
EventDispatcher ................................ 2,439,407 op/s

Theoretical max ................................ 7,371,406 op/s

Fastest is MiniSignals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment