-
Notifications
You must be signed in to change notification settings - Fork 137
/
main_page.tpl
77 lines (69 loc) · 2.16 KB
/
main_page.tpl
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
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>MongoDB Benchmark Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<link rel="stylesheet" href="/static/css/page.css">
<script src="static/jquery-1.3.2.min.js"></script>
<script src="static/jquery.dataTables.min.js"></script>
<script src="static/jquery.flot.min.js"></script>
<script>
$(document).ready(function(){
$('table').dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bInfo": false,
"bAutoWidth": true
});
});
</script>
</head>
<body>
<h1>MongoDB Benchmark Results</h1>
%for k, (outer_result, flot_data) in enumerate(zip(results, flot_results)):
<h2>{{outer_result['name']}}</h2>
<table class="display">
<thead>
<tr>
<th>Num</th>
<th>Version</th>
<th>Date</th>
<th>one thread</th>
<th>two threads</th>
<th>four threads</th>
<th>ten threads</th>
</tr>
</thead>
<tbody>
%for i, result in enumerate(outer_result['results']):
<tr>
<td>{{i}}</td>
<td>{{result['version']}}</td>
<td>{{result['date']}}</td>
<td>{{result['one']['ops_per_sec']}}</td>
<td>{{result['two']['ops_per_sec']}}</td>
<td>{{result['four']['ops_per_sec']}}</td>
<td>{{result['ten']['ops_per_sec']}}</td>
</tr>
%end
</thead>
</table>
<div id="flot_{{k}}" style="width:600px;height:300px;"> </div>
<script>
$(function(){
var data = {{flot_data}};
$.plot(
$('#flot_{{k}}'), data,
{
series: { lines: { show: true }, points: { show: true } },
xaxis: {ticks : [1,2,4,10]}
}
);
});
</script>
<hr>
%end
</body>
</html>
%# vim: set ft=html: