Skip to content

Commit e491908

Browse files
committed
Invert plot 2
1 parent 224babe commit e491908

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

example/templates/home.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,19 @@
101101
tempgeo *= tagged_data[i][j];
102102
}
103103
tempgeo = Math.pow(tempgeo, 1/tagged_data[i].length);
104+
tempgeo = 1/tempgeo;
104105
geomeans.push(tempgeo);
105106
}
106-
geomeans.push(trunk_geomean);
107+
geomeans.push(1/trunk_geomean);
107108
var ticks = [data['baseline']];
108109
for (var i in data['tagged_revs']) {
109110
ticks.push(data['tagged_revs'][i]);
110111
}
111112
ticks.push('PyPy trunk');
112113
var geolabels = new Array();
113-
for (var i in geomeans) {
114-
geolabels.push(geomeans[i].toFixed(2) + " (" + (1/geomeans[i]).toFixed(1) + "x)");
114+
for (var i in geomeans) {
115+
// geolabels.push(geomeans[i].toFixed(2) + " (" + (1/geomeans[i]).toFixed(1) + "x)");
116+
geolabels.push(geomeans[i].toFixed(2) + "x");
115117
}
116118
$('#num_of_benchs').html(num_of_benchs)
117119

@@ -131,7 +133,8 @@
131133
ticks: ticks
132134
},
133135
yaxis:{
134-
ticks: [0.0, 0.25, 0.5, 0.75, 1.0, 1.25],
136+
// ticks: [0.0, 0.25, 0.5, 0.75, 1.0, 1.25],
137+
min: 0,
135138
tickOptions:{formatString:'%.2f'}
136139
}
137140
}
@@ -196,7 +199,7 @@ <h3>How fast is PyPy?</h3>
196199
<h3>How has PyPy performance evolved over time?</h3>
197200

198201
<div id="cpythonplot2" style="width:600px;height:400px;margin: 0 auto;"></div>
199-
<p style="font-size:smaller;">Plot 2: Geometric averages of normalized times, out of <span id="num_of_benchs"></span> benchmarks. Smaller is better. "times faster" inside parenthesis</p>
202+
<p style="font-size:smaller;">Plot 2: Speedup compared to CPython, using the inverse of the geometric average of normalized times, out of <span id="num_of_benchs"></span> benchmarks.</p>
200203
</div>
201204
</div>
202205
{% endblock body %}

0 commit comments

Comments
 (0)