Skip to content

Commit

Permalink
perf(filter-map-reduce): improve filter-map-reduce test to actually d…
Browse files Browse the repository at this point in the history
…o reduce() too
  • Loading branch information
Andre Medeiros committed Feb 26, 2016
1 parent 09174f2 commit 7ff9fd0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions perf/filter-map-reduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,30 @@ suite
runners.runMost(deferred, most.from(a).filter(even).map(add1).reduce(sum, 0));
}, options)
.add('rx 4', function(deferred) {
runners.runRx(deferred, rx.Observable.fromArray(a).filter(even).map(add1))//.reduce(sum, 0));
runners.runRx(deferred, rx.Observable.fromArray(a).filter(even).map(add1).reduce(sum, 0));
}, options)
.add('rx 5', function(deferred) {
runners.runRx5(deferred,
rxjs.Observable.fromArray(a).filter(even).map(add1))//.reduce(sum, 0));
rxjs.Observable.fromArray(a).filter(even).map(add1).reduce(sum, 0));
}, options)
.add('xstream', function(deferred) {
runners.runXStream(deferred,
xstream.from(a).filter(even).map(add1))//.reduce(sum, 0));
xstream.from(a).filter(even).map(add1).fold(sum, 0).last());
}, options)
.add('kefir', function(deferred) {
runners.runKefir(deferred, kefirFromArray(a).filter(even).map(add1).scan(sum, 0).last());
}, options)
.add('bacon', function(deferred) {
runners.runBacon(deferred, bacon.fromArray(a).filter(even).map(add1))//.reduce(0, sum));
runners.runBacon(deferred, bacon.fromArray(a).filter(even).map(add1).reduce(0, sum));
}, options)
.add('highland', function(deferred) {
runners.runHighland(deferred, highland(a).filter(even).map(add1))//.reduce(0, sum));
runners.runHighland(deferred, highland(a).filter(even).map(add1).reduce(0, sum));
}, options)
.add('lodash', function() {
return lodash(a).filter(even).map(add1)//.reduce(sum, 0);
return lodash(a).filter(even).map(add1).reduce(sum, 0);
})
.add('Array', function() {
return a.filter(even).map(add1)//.reduce(sum, 0);
return a.filter(even).map(add1).reduce(sum, 0);
});

runners.runSuite(suite);
Expand Down

0 comments on commit 7ff9fd0

Please sign in to comment.