-
Notifications
You must be signed in to change notification settings - Fork 2
/
large-benchmark.html
66 lines (64 loc) · 1.59 KB
/
large-benchmark.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<html>
<head>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.js"></script>
<div style="width: 500px; height: 500px">
<canvas id="myChart" width="500" height="300"></canvas>
</div>
<script>
var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
datasets: [{
label: 'Ruby',
data: [333, 322, 329, 336, 315, 343, 317, 364, 317, 342],
backgroundColor: 'rgba(255, 99, 132, 0.2)',
fill: false,
borderColor: 'rgba(255,99,132,1)',
},
{
label: 'Node (streams)',
data: [563, 595, 608, 603, 628, 607, 603, 607, 585, 599],
backgroundColor: 'rgba(0,0,255,0.2)',
fill: false,
borderColor: 'rgba(0,0,255,1)',
},
{
label: 'Node',
data: [242, 262, 238, 251, 238, 255, 258, 230, 262, 264],
backgroundColor: 'rgba(1, 173, 1, 0.2)',
fill: false,
borderColor: 'rgba(1, 173, 7, 1)',
}
]
},
options: {
title: {
display: true,
text: 'Processing speed - 4.8MB image (less is better)'
},
scales: {
yAxes: [{
scaleLabel: {
display: true,
labelString: "Run time (ms)"
},
ticks: {
beginAtZero:true
}
}],
xAxes: [{
scaleLabel: {
display: true,
labelString: "Step"
},
}]
}
}
});
</script>
</body>
</html>