-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle_vm_xfs_ssd_nfs_native_vs_threads_sync.html
74 lines (68 loc) · 1.84 KB
/
single_vm_xfs_ssd_nfs_native_vs_threads_sync.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
66
67
68
69
70
71
72
73
74
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<link href="/static/css/v0.2/nv.d3.css" rel="stylesheet" type="text/css" media="all">
<script src="/static/js/v0.2/function-bind.js"></script>
<script src="/static/js/v0.2/d3.v3.js"></script>
<script src="/static/js/v0.2/nv.d3.js"></script>
<script src="/static/js/v0.2/saveSvgAsPng.js"></script>
<script src="/static/js/v0.2/pbench_utils.js"></script>
<script src="single_vm_xfs_ssd_nfs_native_vs_threads_sync-readwrite_IOPS.js"></script>
<style>
text {
font: 12px sans-serif;
}
svg {
display: block;
}
html, body, #chart1, svg {
margin: 0px;
padding: 0px;
height: 126%;
width: 100%;
}
</style>
</head>
<div id='chart1'>
<svg>
</svg>
</div>
<pre>
comparison geo-mean-ratio buffalo-wings
result_2/result_1 0.99 -0.01
</pre>
<script>
var strP = /[^a-zA-Z-]/g;
var numsP = /[^0-9]/g;
function sortParams(a,b) {
var a_str = a.label.replace(strP, '');
var b_str = b.label.replace(strP, '');
if(a_str === b_str) {
var a_num = parseInt(a.label.replace(numsP, ""), 10);
var b_num = parseInt(b.label.replace(numsP, ""), 10);
return a_num === b_num ? 0 : a_num > b_num ? 1 : -1;
} else {
return a_str > b_str ? 1 : -1;
}
}
for (i = 0; i < readwrite_IOPS.length; i++) {
readwrite_IOPS[i].values = readwrite_IOPS[i].values.sort(sortParams);
}
var chart;
nv.addGraph(function() {
chart = nv.models.multiBarHorizontalChart()
.x(function(d) { return d.label })
.y(function(d) { return d.value })
.margin({top: 30, right: 20, bottom: 50, left: 175})
.showValues(true) //Show bar value next to each bar.
.tooltips(true); //Show tooltips on hover.
chart.yAxis.tickFormat(d3.format(',.2f'));
d3.select('#chart1 svg')
.datum(readwrite_IOPS)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
</script>
</html>