From ae74881942cfd6bebc88a57664b6f9f1fd30eda2 Mon Sep 17 00:00:00 2001 From: Peter Ebden Date: Wed, 18 Nov 2026 10:14:22 +0000 Subject: [PATCH] Limit error bars on graph --- docs/performance.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/performance.html b/docs/performance.html index c54e021361..d5793decc2 100644 --- a/docs/performance.html +++ b/docs/performance.html @@ -12,8 +12,9 @@

Overall parse performance

dependencies. The test measures the time to analyse a large (~300,000 targets) synthetic graph. This is primarily a benchmark of asp, the core build graph and relevant parts of the Go runtime, but touches on everything relating to analysing the build graph.

-

This benchmark is ran five times. Plotted is the average (mean) time for each run, with the ranges representing the - minimum and maximum times.

+

This benchmark is ran five times. Plotted is the median time for each commit, with the ranges representing the + minimum and maximum times. The axis is capped so occasional extreme outliers are clipped + rather than squashing the rest of the graph; hover over a point to see its full range.

Peak memory usage

@@ -95,13 +96,17 @@

Provide for performance

]})), }); + // Occasional runs on a noisy machine take many times longer than normal; letting those + // set the axis range squashes everything else flat. Cap the axis relative to the medians + // instead; outlying ranges are clipped at the top (tooltips still show the real values). + const parseMax = Math.ceil(1.5 * Math.max(...results.map(r => r.parse.median)) / 5) * 5; const parseChart = new google.visualization.LineChart(document.getElementById('parse_chart')); parseChart.draw(timeData, { title: 'Parse Time (seconds)', titleTextStyle: {color: 'white'}, curveType: 'none', legend: { position: 'none' }, - vAxis: { minValue: 0, textStyle: {color: 'white'}}, + vAxis: { viewWindow: { min: 0, max: parseMax }, textStyle: {color: 'white'}}, hAxis: { textStyle: {color: 'white'}}, backgroundColor: '#202328', lineWidth: 3,