Implement groupBy with for() and measure performance

about 8 times faster
This commit is contained in:
Alexander Zobnin
2017-06-25 22:51:27 +03:00
parent da6373bda7
commit 2f6da44311
11 changed files with 236 additions and 38 deletions

View File

@@ -37,4 +37,14 @@ module.exports = [{
_timeseries2.default.sumSeries(prepeared_series);
}
}
}, {
name: 'groupBy vs groupBy_perf',
tests: {
'groupBy()': function groupBy() {
_timeseries2.default.groupBy(datapoints, '5m', _timeseries2.default.AVERAGE);
},
'groupBy_perf()': function groupBy_perf() {
_timeseries2.default.groupBy_perf(datapoints, '5m', _timeseries2.default.AVERAGE);
}
}
}];