Skip to content

Commit

Permalink
remove-emit optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
Morglod committed Oct 1, 2019
1 parent 6f973a1 commit 2259acb
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 104 deletions.
198 changes: 99 additions & 99 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,172 +5,172 @@
Starting benchmark emit-multiple-listeners.js

```
EventEmitter1 x 3,623,014 ops/sec ±5.38% (84 runs sampled)
EventEmitter2 x 2,099,199 ops/sec ±0.45% (87 runs sampled)
EventEmitter3 x 4,815,012 ops/sec ±0.42% (89 runs sampled)
fastemitter x 3,500,224 ops/sec ±0.59% (87 runs sampled)
event-emitter x 1,649,388 ops/sec ±0.28% (87 runs sampled)
contra/emitter x 503,767 ops/sec ±0.18% (89 runs sampled)
tsee x 3,151,787 ops/sec ±0.27% (87 runs sampled)
tseep x 22,590,864 ops/sec ±0.19% (90 runs sampled)
EventEmitter1 x 3,734,481 ops/sec ±1.21% (85 runs sampled)
EventEmitter2 x 2,020,684 ops/sec ±1.33% (87 runs sampled)
EventEmitter3 x 4,758,206 ops/sec ±1.27% (88 runs sampled)
fastemitter x 3,559,256 ops/sec ±0.55% (88 runs sampled)
event-emitter x 1,653,731 ops/sec ±0.43% (90 runs sampled)
contra/emitter x 502,403 ops/sec ±0.59% (85 runs sampled)
tsee x 3,120,487 ops/sec ±0.49% (86 runs sampled)
tseep x 22,473,054 ops/sec ±0.46% (89 runs sampled)
Fastest is tseep
```

Starting benchmark emit-multi.js

```
EventEmitter1 x 10,999,235 ops/sec ±0.36% (90 runs sampled)
EventEmitter2 x 6,655,586 ops/sec ±0.40% (83 runs sampled)
EventEmitter3 x 8,558,716 ops/sec ±0.45% (88 runs sampled)
Drip x 6,631,401 ops/sec ±0.62% (89 runs sampled)
fastemitter x 5,555,847 ops/sec ±0.73% (88 runs sampled)
event-emitter x 5,045,015 ops/sec ±0.51% (89 runs sampled)
contra/emitter x 648,935 ops/sec ±0.22% (90 runs sampled)
tsee x 5,136,241 ops/sec ±0.41% (89 runs sampled)
tseep x 24,939,590 ops/sec ±0.23% (89 runs sampled)
EventEmitter1 x 10,775,862 ops/sec ±0.48% (87 runs sampled)
EventEmitter2 x 6,637,276 ops/sec ±0.75% (85 runs sampled)
EventEmitter3 x 8,568,950 ops/sec ±0.37% (90 runs sampled)
Drip x 6,518,462 ops/sec ±0.67% (89 runs sampled)
fastemitter x 5,631,135 ops/sec ±0.55% (87 runs sampled)
event-emitter x 4,996,020 ops/sec ±0.59% (87 runs sampled)
contra/emitter x 632,073 ops/sec ±0.74% (87 runs sampled)
tsee x 5,152,560 ops/sec ±0.56% (87 runs sampled)
tseep x 24,756,644 ops/sec ±0.50% (87 runs sampled)
Fastest is tseep
```

Starting benchmark once-multi.js

```
EventEmitter1 x 845,345 ops/sec ±1.84% (90 runs sampled)
EventEmitter2 x 392,585 ops/sec ±0.63% (86 runs sampled)
EventEmitter3 x 3,609,865 ops/sec ±0.87% (85 runs sampled)
EventEmitter1 x 860,208 ops/sec ±2.14% (84 runs sampled)
EventEmitter2 x 377,202 ops/sec ±0.82% (84 runs sampled)
EventEmitter3 x 3,561,668 ops/sec ±0.81% (86 runs sampled)
Drip:
fastemitter x 376,473 ops/sec ±3.08% (79 runs sampled)
event-emitter x 315,167 ops/sec ±0.53% (88 runs sampled)
contra/emitter x 479,869 ops/sec ±0.46% (90 runs sampled)
tseep x 9,985,201 ops/sec ±3.34% (86 runs sampled)
fastemitter x 379,332 ops/sec ±0.48% (65 runs sampled)
event-emitter x 319,739 ops/sec ±0.50% (87 runs sampled)
contra/emitter x 485,086 ops/sec ±0.50% (90 runs sampled)
tseep x 10,458,817 ops/sec ±0.56% (88 runs sampled)
Fastest is tseep
```

Starting benchmark emit-empty.js

```
EventEmitter1 x 15,874,995 ops/sec ±0.46% (91 runs sampled)
EventEmitter2 x 25,216,444 ops/sec ±0.30% (87 runs sampled)
EventEmitter3 x 26,657,635 ops/sec ±0.25% (90 runs sampled)
Drip x 24,505,277 ops/sec ±0.28% (91 runs sampled)
fastemitter x 31,906,470 ops/sec ±0.62% (89 runs sampled)
event-emitter x 28,863,547 ops/sec ±0.36% (90 runs sampled)
contra/emitter x 609,338 ops/sec ±0.47% (86 runs sampled)
tsee x 10,673,263 ops/sec ±1.09% (86 runs sampled)
tseep x 667,518,714 ops/sec ±0.63% (82 runs sampled)
EventEmitter1 x 15,892,774 ops/sec ±0.43% (88 runs sampled)
EventEmitter2 x 25,000,035 ops/sec ±0.57% (90 runs sampled)
EventEmitter3 x 26,514,630 ops/sec ±0.41% (88 runs sampled)
Drip x 24,183,628 ops/sec ±0.40% (91 runs sampled)
fastemitter x 31,786,340 ops/sec ±0.41% (84 runs sampled)
event-emitter x 28,692,480 ops/sec ±0.53% (89 runs sampled)
contra/emitter x 611,265 ops/sec ±0.45% (86 runs sampled)
tsee x 10,579,225 ops/sec ±1.12% (85 runs sampled)
tseep x 673,799,468 ops/sec ±0.58% (88 runs sampled)
Fastest is tseep
```

Starting benchmark hundreds.js

```
EventEmitter1 x 488,577 ops/sec ±1.58% (84 runs sampled)
EventEmitter2 x 266,649 ops/sec ±0.47% (88 runs sampled)
EventEmitter3 x 577,613 ops/sec ±0.42% (90 runs sampled)
Drip x 506,428 ops/sec ±0.49% (88 runs sampled)
fastemitter x 575,021 ops/sec ±0.44% (82 runs sampled)
event-emitter x 339,171 ops/sec ±0.49% (88 runs sampled)
contra/emitter x 176,078 ops/sec ±0.42% (88 runs sampled)
tsee x 365,489 ops/sec ±0.39% (87 runs sampled)
tseep x 826,014 ops/sec ±1.44% (89 runs sampled)
EventEmitter1 x 436,196 ops/sec ±0.97% (88 runs sampled)
EventEmitter2 x 245,238 ops/sec ±0.66% (88 runs sampled)
EventEmitter3 x 536,497 ops/sec ±0.43% (89 runs sampled)
Drip x 477,906 ops/sec ±0.59% (88 runs sampled)
fastemitter x 568,447 ops/sec ±0.41% (90 runs sampled)
event-emitter x 314,159 ops/sec ±0.57% (83 runs sampled)
contra/emitter x 175,504 ops/sec ±0.57% (89 runs sampled)
tsee x 374,131 ops/sec ±0.31% (86 runs sampled)
tseep x 824,880 ops/sec ±0.51% (89 runs sampled)
Fastest is tseep
```

Starting benchmark listeners.js

```
EventEmitter1 x 14,922,462 ops/sec ±4.46% (87 runs sampled)
EventEmitter3 x 15,918,914 ops/sec ±0.61% (89 runs sampled)
fastemitter x 8,452,053 ops/sec ±0.59% (88 runs sampled)
tsee x 20,122,171 ops/sec ±1.78% (80 runs sampled)
tseep x 19,474,850 ops/sec ±0.63% (87 runs sampled)
EventEmitter1 x 14,881,885 ops/sec ±4.30% (90 runs sampled)
EventEmitter3 x 15,506,029 ops/sec ±4.65% (87 runs sampled)
fastemitter x 8,422,512 ops/sec ±0.54% (88 runs sampled)
tsee x 19,938,228 ops/sec ±3.44% (79 runs sampled)
tseep x 19,328,462 ops/sec ±0.81% (90 runs sampled)
Fastest is tsee
```

Starting benchmark emit.js

```
EventEmitter1 x 9,470,706 ops/sec ±0.46% (88 runs sampled)
EventEmitter2 x 9,044,527 ops/sec ±0.48% (88 runs sampled)
EventEmitter3 x 21,136,547 ops/sec ±1.98% (86 runs sampled)
Drip x 9,561,734 ops/sec ±0.46% (89 runs sampled)
fastemitter x 7,460,297 ops/sec ±0.82% (88 runs sampled)
event-emitter x 6,119,233 ops/sec ±0.64% (85 runs sampled)
contra/emitter x 552,188 ops/sec ±0.40% (87 runs sampled)
tsee x 5,771,893 ops/sec ±0.41% (87 runs sampled)
tseep x 99,631,038 ops/sec ±0.34% (89 runs sampled)
EventEmitter1 x 9,686,186 ops/sec ±0.60% (90 runs sampled)
EventEmitter2 x 9,116,879 ops/sec ±0.83% (84 runs sampled)
EventEmitter3 x 21,577,084 ops/sec ±0.45% (90 runs sampled)
Drip x 9,442,799 ops/sec ±0.59% (89 runs sampled)
fastemitter x 7,508,975 ops/sec ±0.74% (86 runs sampled)
event-emitter x 6,093,828 ops/sec ±0.61% (87 runs sampled)
contra/emitter x 550,212 ops/sec ±0.44% (86 runs sampled)
tsee x 5,677,884 ops/sec ±0.48% (87 runs sampled)
tseep x 98,991,865 ops/sec ±0.61% (89 runs sampled)
Fastest is tseep
```

Starting benchmark init.js

```
EventEmitter1 x 18,383,863 ops/sec ±2.88% (86 runs sampled)
EventEmitter2 x 21,330,869 ops/sec ±0.25% (87 runs sampled)
EventEmitter3 x 26,529,057 ops/sec ±0.72% (86 runs sampled)
Drip x 33,086,149 ops/sec ±4.53% (84 runs sampled)
fastemitter x 17,833,289 ops/sec ±0.55% (88 runs sampled)
event-emitter x 28,227,376 ops/sec ±3.69% (82 runs sampled)
contra/emitter x 12,247,073 ops/sec ±0.80% (88 runs sampled)
tsee x 4,728,162 ops/sec ±0.78% (86 runs sampled)
tseep x 15,501,118 ops/sec ±0.48% (89 runs sampled)
EventEmitter1 x 18,247,759 ops/sec ±2.72% (89 runs sampled)
EventEmitter2 x 21,271,191 ops/sec ±0.62% (88 runs sampled)
EventEmitter3 x 26,633,790 ops/sec ±0.70% (81 runs sampled)
Drip x 34,747,974 ops/sec ±0.58% (85 runs sampled)
fastemitter x 18,076,142 ops/sec ±0.27% (88 runs sampled)
event-emitter x 27,171,002 ops/sec ±3.46% (83 runs sampled)
contra/emitter x 12,122,662 ops/sec ±0.83% (87 runs sampled)
tsee x 4,641,144 ops/sec ±0.80% (83 runs sampled)
tseep x 15,542,682 ops/sec ±0.37% (89 runs sampled)
Fastest is Drip
```

Starting benchmark remove-emit.js

```
EventEmitter1 x 10,427,795 ops/sec ±0.29% (89 runs sampled)
EventEmitter2 x 9,882,895 ops/sec ±0.60% (85 runs sampled)
EventEmitter3 x 21,123,852 ops/sec ±0.57% (90 runs sampled)
Drip x 10,291,014 ops/sec ±0.39% (91 runs sampled)
event-emitter x 6,695,628 ops/sec ±0.43% (85 runs sampled)
contra/emitter x 561,732 ops/sec ±0.45% (90 runs sampled)
tsee x 6,188,867 ops/sec ±0.61% (85 runs sampled)
tseep x 99,361,369 ops/sec ±0.44% (87 runs sampled)
EventEmitter1 x 15,616,302 ops/sec ±0.61% (86 runs sampled)
EventEmitter2 x 24,917,312 ops/sec ±0.50% (86 runs sampled)
EventEmitter3 x 25,776,381 ops/sec ±0.62% (85 runs sampled)
Drip x 22,884,521 ops/sec ±0.58% (89 runs sampled)
event-emitter x 12,937,339 ops/sec ±0.38% (89 runs sampled)
contra/emitter x 597,067 ops/sec ±0.45% (86 runs sampled)
tsee x 10,215,954 ops/sec ±1.09% (85 runs sampled)
tseep x 111,954,186 ops/sec ±0.37% (88 runs sampled)
Fastest is tseep
```

Starting benchmark context.js

```
EventEmitter1 x 9,270,400 ops/sec ±0.44% (87 runs sampled)
EventEmitter2 x 8,946,180 ops/sec ±0.49% (89 runs sampled)
EventEmitter3 x 20,836,010 ops/sec ±0.29% (90 runs sampled)
Drip x 9,289,677 ops/sec ±0.48% (90 runs sampled)
fastemitter x 7,379,052 ops/sec ±0.80% (86 runs sampled)
event-emitter x 6,110,232 ops/sec ±0.30% (86 runs sampled)
contra/emitter x 555,871 ops/sec ±0.75% (89 runs sampled)
tsee x 5,659,185 ops/sec ±0.37% (87 runs sampled)
tseep x 70,135,618 ops/sec ±0.35% (89 runs sampled)
EventEmitter1 x 9,159,235 ops/sec ±0.55% (88 runs sampled)
EventEmitter2 x 9,060,808 ops/sec ±0.55% (84 runs sampled)
EventEmitter3 x 20,633,780 ops/sec ±1.05% (89 runs sampled)
Drip x 9,221,680 ops/sec ±0.83% (90 runs sampled)
fastemitter x 7,261,159 ops/sec ±0.99% (90 runs sampled)
event-emitter x 6,034,865 ops/sec ±0.61% (89 runs sampled)
contra/emitter x 550,380 ops/sec ±0.72% (84 runs sampled)
tsee x 5,639,419 ops/sec ±0.43% (88 runs sampled)
tseep x 69,481,086 ops/sec ±0.54% (89 runs sampled)
Fastest is tseep
```

Starting benchmark once.js

```
EventEmitter1 x 7,980,357 ops/sec ±0.43% (88 runs sampled)
EventEmitter2 x 5,298,924 ops/sec ±1.55% (79 runs sampled)
EventEmitter3 x 19,428,310 ops/sec ±0.72% (85 runs sampled)
Drip x 16,668,583 ops/sec ±0.19% (90 runs sampled)
fastemitter x 11,786,875 ops/sec ±0.78% (86 runs sampled)
event-emitter x 4,528,121 ops/sec ±0.69% (89 runs sampled)
contra/emitter x 2,250,594 ops/sec ±0.33% (87 runs sampled)
tseep x 122,151,335 ops/sec ±1.15% (88 runs sampled)
EventEmitter1 x 7,953,115 ops/sec ±0.64% (85 runs sampled)
EventEmitter2 x 5,195,630 ops/sec ±1.68% (80 runs sampled)
EventEmitter3 x 19,701,663 ops/sec ±0.71% (86 runs sampled)
Drip x 16,479,199 ops/sec ±0.36% (89 runs sampled)
fastemitter x 11,428,391 ops/sec ±1.72% (82 runs sampled)
event-emitter x 4,579,620 ops/sec ±1.42% (88 runs sampled)
contra/emitter x 2,241,206 ops/sec ±0.33% (87 runs sampled)
tseep x 121,605,728 ops/sec ±0.44% (87 runs sampled)
Fastest is tseep
```

Starting benchmark add-remove.js

```
EventEmitter1 x 14,957,228 ops/sec ±1.81% (86 runs sampled)
EventEmitter2 x 10,441,240 ops/sec ±1.86% (80 runs sampled)
EventEmitter3 x 21,523,110 ops/sec ±0.80% (84 runs sampled)
Drip x 128,790,533 ops/sec ±0.69% (87 runs sampled)
fastemitter x 33,130,917 ops/sec ±0.27% (89 runs sampled)
event-emitter x 8,365,123 ops/sec ±0.28% (89 runs sampled)
contra/emitter x 9,471,084 ops/sec ±0.30% (90 runs sampled)
tsee x 8,649,578 ops/sec ±0.64% (89 runs sampled)
tseep x 30,811,556 ops/sec ±0.62% (88 runs sampled)
EventEmitter1 x 14,327,717 ops/sec ±1.78% (89 runs sampled)
EventEmitter2 x 10,153,258 ops/sec ±1.57% (80 runs sampled)
EventEmitter3 x 21,393,895 ops/sec ±0.77% (79 runs sampled)
Drip x 126,678,589 ops/sec ±0.66% (83 runs sampled)
fastemitter x 32,925,699 ops/sec ±0.83% (90 runs sampled)
event-emitter x 8,344,214 ops/sec ±0.35% (89 runs sampled)
contra/emitter x 9,420,393 ops/sec ±0.58% (88 runs sampled)
tsee x 8,602,440 ops/sec ±0.28% (88 runs sampled)
tseep x 31,700,831 ops/sec ±0.41% (88 runs sampled)
Fastest is Drip
```

4 changes: 2 additions & 2 deletions lib/ee.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2259acb

Please sign in to comment.