-
Notifications
You must be signed in to change notification settings - Fork 2
/
small-benchmark.html
66 lines (64 loc) · 1.56 KB
/
small-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: [75, 64, 69, 66, 62, 66, 68, 63, 66, 64],
backgroundColor: 'rgba(255, 99, 132, 0.2)',
fill: false,
borderColor: 'rgba(255,99,132,1)',
},
{
label: 'Node (streams)',
data: [83, 84, 92, 88, 79, 96, 100, 94, 85, 94],
backgroundColor: 'rgba(0,0,255,0.2)',
fill: false,
borderColor: 'rgba(0,0,255,1)',
},
{
label: 'Node',
data: [83, 71, 91, 75, 77, 92, 81, 74, 89, 81],
backgroundColor: 'rgba(1, 173, 1, 0.2)',
fill: false,
borderColor: 'rgba(1, 173, 7, 1)',
}
]
},
options: {
title: {
display: true,
text: 'Processing speed - 52KB 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>