forked from miloyip/itoa-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
49 lines (42 loc) · 1.54 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>itoa benchmark</title>
<script type="text/javascript" src="https://code.highcharts.com/highcharts.js"></script>
<script type="text/javascript" src="https://code.highcharts.com/modules/series-label.js"></script>
<script type="text/javascript" src="https://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript" src="https://code.highcharts.com/modules/offline-exporting.js"></script>
</head>
<body>
<center><select id="select_chart" onchange="do_chart(tests[this.value])"></select></center>
<div id="chart" style="width: 1024px; height: 768px; margin: 0 auto"></div>
<script type="text/javascript" src="release_win64_vc2019.js"></script>
<script type="text/javascript">
function do_chart(test) {
Highcharts.chart('chart',
{
series: test.data,
title: { text: test.name },
subtitle: { text: test.info },
xAxis: {
title: { text: 'digits' },
categories: test.categories,
showLastLabel: true
},
yAxis: { title: { text: 'cycle count - log' }, type: 'logarithmic', minorTickInterval: 0.1 },
legend: { layout: 'vertical', align: 'right', verticalAlign: 'middle' }
}
);
}
select = document.getElementById('select_chart');
for (var i = 0; i<tests.length; ++i) {
var opt = document.createElement('option');
opt.value = i;
opt.text = tests[i].name;
select.appendChild(opt);
}
do_chart(tests[0]);
</script>
</body>
</html>