Skip to content

Instantly share code, notes, and snippets.

@TylorS
Last active February 28, 2016 07:50
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TylorS/2829e739d19927fff1c2 to your computer and use it in GitHub Desktop.
Save TylorS/2829e739d19927fff1c2 to your computer and use it in GitHub Desktop.
$ node --version
v5.2.0
$ npm ls
most-perf@0.10.0 /home/tylor/code/most/test/perf
├── @reactivex/rxjs@5.0.0-beta.1
├── baconjs@0.7.83
├─┬ benchmark@2.0.0 (git://github.com/bestiejs/benchmark.js.git#0660442f7aa588a0066d3c4d3b255e4e288b00a1)
│ ├── lodash@3.10.1
│ └── platform@1.3.1
├─┬ highland@2.6.0
│ └── util-deprecate@1.0.2
├── kefir@3.2.0
├── lodash@4.0.0
└── rx@4.0.7
$ npm start

> most-perf@0.10.0 start /home/tylor/code/most/test/perf
> npm run filter-map-reduce && npm run flatMap && npm run concatMap 
  && npm run zip && npm run scan && npm run skipRepeats


> most-perf@0.10.0 filter-map-reduce /home/tylor/code/most/test/perf
> node ./filter-map-reduce

filter -> map -> reduce 1000000 integers
-------------------------------------------------------
most        380.89 op/s ±  0.93%   (83 samples)
rx 4          1.48 op/s ±  1.95%    (8 samples)
rx 5          5.58 op/s ±  1.21%   (18 samples)
kefir        13.52 op/s ±  0.83%   (36 samples)
bacon         1.22 op/s ±  1.28%    (8 samples)
highland      6.86 op/s ± 10.32%   (21 samples)
lodash       49.75 op/s ±  2.27%   (64 samples)
Array         8.43 op/s ±  2.74%   (25 samples)
-------------------------------------------------------

> most-perf@0.10.0 flatMap /home/tylor/code/most/test/perf
> node ./flatMap.js

flatMap 1000 x 1000 streams
-------------------------------------------------------
most        187.37 op/s ±  0.68%   (86 samples)
rx 4          0.86 op/s ±  2.14%    (7 samples)
rx 5         10.78 op/s ±  1.01%   (30 samples)
kefir        12.79 op/s ±  1.38%   (35 samples)
bacon         1.03 op/s ±  1.89%    (7 samples)
highland      0.19 op/s ±  1.55%    (5 samples)
lodash       25.35 op/s ±  2.31%   (46 samples)
Array         0.79 op/s ±  1.62%    (6 samples)
-------------------------------------------------------

> most-perf@0.10.0 concatMap /home/tylor/code/most/test/perf
> node ./concatMap.js

concatMap 1000 x 1000 streams
-------------------------------------------------------
most        151.79 op/s ±  0.45%   (87 samples)
rx 4          1.42 op/s ±  0.40%    (8 samples)
rx 5         11.07 op/s ±  0.76%   (31 samples)
kefir        13.23 op/s ±  1.38%   (35 samples)
bacon         0.97 op/s ±  1.86%    (7 samples)
lodash       26.27 op/s ±  1.83%   (47 samples)
Array         0.80 op/s ±  1.46%    (7 samples)
-------------------------------------------------------

> most-perf@0.10.0 zip /home/tylor/code/most/test/perf
> node ./zip.js

zip 2 x 100000 integers
-------------------------------------------------------
most        134.14 op/s ±  1.30%   (88 samples)
rx 4          4.60 op/s ±  1.25%   (16 samples)
rx 5         27.12 op/s ±  1.29%   (36 samples)
kefir        21.73 op/s ±  1.55%   (30 samples)
bacon         1.39 op/s ±  4.63%    (8 samples)
highland      0.66 op/s ±  4.03%    (6 samples)
lodash       31.60 op/s ± 11.48%   (43 samples)
-------------------------------------------------------

> most-perf@0.10.0 scan /home/tylor/code/most/test/perf
> node ./scan.js

scan -> reduce 1000000 integers
-------------------------------------------------------
most        324.26 op/s ±  1.46%   (82 samples)
rx 4          1.30 op/s ±  4.37%    (8 samples)
rx 5          5.50 op/s ±  1.50%   (18 samples)
kefir        19.26 op/s ±  1.59%   (27 samples)
bacon         0.92 op/s ±  3.60%    (7 samples)
highland      6.12 op/s ±  6.31%   (19 samples)
lodash       36.98 op/s ±  3.13%   (47 samples)
Array         6.77 op/s ±  3.17%   (21 samples)
-------------------------------------------------------

> most-perf@0.10.0 skipRepeats /home/tylor/code/most/test/perf
> node ./skipRepeats.js

skipRepeats -> reduce 2 x 1000000 integers
-------------------------------------------------------
most        368.54 op/s ±  0.90%   (85 samples)
rx 4          1.74 op/s ±  1.62%    (9 samples)
rx 5          7.21 op/s ±  1.64%   (22 samples)
kefir        15.96 op/s ±  1.04%   (41 samples)
bacon         1.33 op/s ±  0.89%    (8 samples)
lodash        7.21 op/s ±  3.64%   (22 samples)
Array        10.76 op/s ±  1.87%   (31 samples)
-------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment