Open awochna opened 7 years ago
I've encountered the same problem.
var snapshotCount;
for (var key in categories) {
snapshotCount = categories[key].length;
break;
}
...
for (var i = 0; i < snapshotCount; i++) {
// Go through the ith snapshot of each category
var sample = _.map(categories, function(snapshots, key) {
var val = snapshots[i];
return {cat: key, val: val.elapsed / val.n};
});
I've noticed that snapshotCount
between categories varies. And the way it calculates it now, it may not be correct for every category.
I think this has to do with the fact that one of the benchmarks in the comparison has a test that the other does not. The
mix bench.cmp
command handled this just fine, but themix bench.graph
command results in an HTML page that doesn't display a graph.The full error from the JS console:
The snapshots are put into a gist: https://gist.github.com/awochna/9e010affe57ad9df6ffbdaf144f6c9fa