|
38 | 38 | add_to_tagged_data = false; |
39 | 39 | } |
40 | 40 | if (add_to_tagged_data === false) { break; } |
41 | | - relative_value = data['results'][benchname][rev]/data['results'][benchname]['CPython 2.6.2']; |
| 41 | + relative_value = data['results'][benchname][rev]/data['results'][benchname][data['baseline']]; |
42 | 42 | tagged_data[i].push(relative_value) |
43 | 43 | } |
44 | 44 | // Only add benchmark if there are no 0 values |
45 | 45 | if (add_to_tagged_data === false) { continue; } |
46 | 46 | // First add benchmark |
47 | 47 | benchmarks.push(benchname); |
48 | 48 | // Add PyPy trunk and CPython's 1.0 value |
49 | | - relative_value = data['results'][benchname]['PyPy trunk']/data['results'][benchname]['CPython 2.6.2']; |
| 49 | + relative_value = data['results'][benchname]['PyPy trunk']/data['results'][benchname][data['baseline']]; |
50 | 50 | plotdata[0].push(relative_value); |
51 | 51 | plotdata[1].push(1.0); |
52 | 52 | labels.push(relative_value.toFixed(2)); |
|
73 | 73 | pointLabels:{labels:labels} |
74 | 74 | }, |
75 | 75 | { |
76 | | - label: 'CPython', |
| 76 | + label: data['baseline'], |
77 | 77 | pointLabels:{show:false} |
78 | 78 | } |
79 | 79 | ], |
|
84 | 84 | tickOptions: {angle: -40} |
85 | 85 | }, |
86 | 86 | yaxis:{ |
87 | | - ticks: [0, 0.25, 0.5, 0.75, 1, 1.25, 1.5], |
| 87 | + ticks: [0, 0.25, 0.5, 0.75, 1, 1.25], |
88 | 88 | tickOptions:{formatString:'%.2f'} |
89 | 89 | } |
90 | 90 | } |
|
104 | 104 | geomeans.push(tempgeo); |
105 | 105 | } |
106 | 106 | geomeans.push(trunk_geomean); |
107 | | - var ticks = ['CPython 2.6.2']; |
| 107 | + var ticks = [data['baseline']]; |
108 | 108 | for (var i in data['tagged_revs']) { |
109 | 109 | ticks.push(data['tagged_revs'][i]); |
110 | 110 | } |
@@ -195,7 +195,7 @@ <h3>How fast is PyPy?</h3> |
195 | 195 | <p>It depends greatly on the type of task being performed. The geometric average of all benchmarks is <span id="geomean"></span> or <strong id="geofaster"></strong> times <em>faster</em> than CPython</p> |
196 | 196 | <h3>How has PyPy performance evolved over time?</h3> |
197 | 197 |
|
198 | | - <div id="cpythonplot2" style="width:500px;height:400px;margin: 0 auto;"></div> |
| 198 | + <div id="cpythonplot2" style="width:600px;height:400px;margin: 0 auto;"></div> |
199 | 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> |
200 | 200 | </div> |
201 | 201 | </div> |
|
0 commit comments