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

@@ -31,5 +31,16 @@ module.exports = [
ts.sumSeries(prepeared_series);
}
}
},
{
name: 'groupBy vs groupBy_perf',
tests: {
'groupBy()': () => {
ts.groupBy(datapoints, '5m', ts.AVERAGE);
},
'groupBy_perf()': () => {
ts.groupBy_perf(datapoints, '5m', ts.AVERAGE);
}
}
}
];