Skip to content

Commit 11b541a

Browse files
committed
omit reversing run data, and instead simply store the first result
1 parent acbf5eb commit 11b541a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

devops/scripts/benchmarks/html/scripts.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ function processTimeseriesData(benchmarkRuns) {
540540
function processBarChartsData(benchmarkRuns) {
541541
const groupedResults = {};
542542

543-
benchmarkRuns.reverse().forEach(run => {
543+
benchmarkRuns.forEach(run => {
544544
run.results.forEach(result => {
545545
if (!result.explicit_group) return;
546546

@@ -582,7 +582,8 @@ function processBarChartsData(benchmarkRuns) {
582582
}
583583

584584
const runIndex = group.labels.indexOf(run.name);
585-
dataset.data[runIndex] = result.value;
585+
if (dataset.data[runIndex] == null)
586+
dataset.data[runIndex] = result.value;
586587
});
587588
});
588589

0 commit comments

Comments
 (0)