forked from mackstann/hash-table-shootout
-
Notifications
You must be signed in to change notification settings - Fork 2
/
charts_firstrun_partial.html
121 lines (95 loc) · 11.1 KB
/
charts_firstrun_partial.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<html>
<head>
<!--[if IE]><script language="javascript" type="text/javascript" src="http://flot.googlecode.com/svn/trunk/excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="http://flot.googlecode.com/svn/trunk/jquery.js"></script>
<script language="javascript" type="text/javascript" src="http://flot.googlecode.com/svn/trunk/jquery.flot.js"></script>
</head>
<body>
<script>
series_settings = {
lines: { show: true },
points: { show: true }
};
grid_settings = { tickColor: '#ddd' };
xaxis_settings = {
tickSize: 5000000,
tickFormatter: function(num, obj) { return parseInt(num/1000000) + 'M'; }
};
yaxis_runtime_settings = {
tickSize: 10,
tickFormatter: function(num, obj) { return num + ' sec.'; }
};
yaxis_memory_settings = {
tickSize: 200*1024*1024,
tickFormatter: function(num, obj) { return parseInt(num/1024/1024) + 'MiB'; }
};
legend_settings = {
position: 'nw',
backgroundOpacity: 0
};
runtime_settings = {
series: series_settings,
grid: grid_settings,
xaxis: xaxis_settings,
yaxis: yaxis_runtime_settings,
legend: legend_settings
};
memory_settings = {
series: series_settings,
grid: grid_settings,
xaxis: xaxis_settings,
yaxis: yaxis_memory_settings,
legend: legend_settings
};
chart_data = {"delete-runtime": [{"data": [[2000000, 0.260319], [4000000, 0.522349], [6000000, 0.792712], [8000000, 1.044659], [10000000, 1.311234], [12000000, 1.582389], [14000000, 1.838669], [16000000, 2.106651], [18000000, 2.442731], [20000000, 2.642092], [22000000, 2.944376], [24000000, 3.153601], [26000000, 3.541847]], "label": "GCC 4.4 std::unordered_map"}, {"data": [[2000000, 0.199848], [4000000, 0.403665], [6000000, 0.570673], [8000000, 0.775139], [10000000, 0.961677], [12000000, 1.159544], [14000000, 1.366269], [16000000, 1.59253], [18000000, 1.797805], [20000000, 1.954474], [22000000, 2.271374], [24000000, 2.341266]], "label": "Python 2.6 (C API) dict"}, {"data": [[2000000, 0.315948], [4000000, 0.610212], [6000000, 0.961881], [8000000, 1.268048], [10000000, 1.611101], [12000000, 1.986277], [14000000, 2.092155], [16000000, 2.448329], [18000000, 2.792794], [20000000, 3.170832], [22000000, 3.486344], [24000000, 3.852793]], "label": "Ruby 1.9 (C API) Hash"}, {"data": [[2000000, 0.104466], [4000000, 0.208913], [6000000, 0.313161], [8000000, 0.417175], [10000000, 0.521607], [12000000, 0.62544], [14000000, 0.745551], [16000000, 0.83449], [18000000, 0.939181], [20000000, 1.136426], [22000000, 1.152118], [24000000, 1.268469], [26000000, 1.374014]], "label": "Lua 5.1 (C API) table"}], "sequential-runtime": [{"data": [[2000000, 0.30803], [4000000, 0.613213], [6000000, 1.014938], [8000000, 1.233559], [10000000, 1.854478], [12000000, 2.063755], [14000000, 2.268601], [16000000, 2.495242], [18000000, 3.48974], [20000000, 3.708017], [22000000, 3.927954], [24000000, 4.147252], [26000000, 4.366185], [28000000, 4.587072], [30000000, 4.803661], [32000000, 5.013601], [34000000, 5.241796], [36000000, 5.463817], [38000000, 7.269657], [40000000, 7.48666]], "label": "GCC 4.4 std::unordered_map"}, {"data": [[2000000, 0.433048], [4000000, 0.871755], [6000000, 1.630407], [8000000, 1.765986], [10000000, 1.905679], [12000000, 3.21667], [14000000, 3.37603], [16000000, 3.50999], [18000000, 3.659823], [20000000, 3.795302], [22000000, 3.92172], [24000000, 6.49727], [26000000, 6.660842], [28000000, 6.783221], [30000000, 6.920292], [32000000, 7.059129], [34000000, 7.17092], [36000000, 7.335469], [38000000, 7.482109], [40000000, 7.642566]], "label": "Python 2.6 (C API) dict"}, {"data": [[2000000, 0.504951], [4000000, 1.296154], [6000000, 2.173932], [8000000, 3.297834], [10000000, 4.42807], [12000000, 5.713122], [14000000, 7.196115], [16000000, 8.222929], [18000000, 9.495206], [20000000, 10.67912], [22000000, 11.832207], [24000000, 13.511898], [26000000, 15.662475], [28000000, 16.841085], [30000000, 18.096585], [32000000, 19.361761], [34000000, 20.089504], [36000000, 21.387315], [38000000, 22.872183], [40000000, 24.36487]], "label": "Ruby 1.9 (C API) Hash"}, {"data": [[2000000, 0.150043], [4000000, 0.294654], [6000000, 0.481758], [8000000, 0.585933], [10000000, 0.843686], [12000000, 0.950322], [14000000, 1.058901], [16000000, 1.18187], [18000000, 1.566947], [20000000, 1.681614], [22000000, 1.792161], [24000000, 1.906911], [26000000, 2.020846], [28000000, 2.116612], [30000000, 2.232248], [32000000, 2.356474], [34000000, 3.03552], [36000000, 3.208524], [38000000, 3.254199], [40000000, 3.370408]], "label": "Lua 5.1 (C API) table"}], "random-runtime": [{"data": [[2000000, 1.075087], [4000000, 2.320254], [6000000, 4.19916], [8000000, 4.955682], [10000000, 8.182667], [12000000, 8.885927], [14000000, 9.649054], [16000000, 10.519392], [18000000, 11.339186], [20000000, 17.244055], [22000000, 17.997871], [24000000, 18.786668], [26000000, 19.596581], [28000000, 20.442932], [30000000, 21.283568], [32000000, 22.070629], [34000000, 22.952328], [36000000, 23.921257], [38000000, 35.338085], [40000000, 36.145015]], "label": "GCC 4.4 std::unordered_map"}, {"data": [[2000000, 1.139884], [4000000, 2.381504], [6000000, 4.412733], [8000000, 5.083148], [10000000, 5.815022], [12000000, 9.438282], [14000000, 10.200765], [16000000, 10.9875], [18000000, 11.823153], [20000000, 12.644209], [22000000, 13.533216], [24000000, 20.45467], [26000000, 21.222203], [28000000, 22.017268], [30000000, 22.823275], [32000000, 23.657903], [34000000, 24.509517], [36000000, 25.438871], [38000000, 26.307371], [40000000, 27.357804]], "label": "Python 2.6 (C API) dict"}, {"data": [[2000000, 2.764282], [4000000, 8.012988], [6000000, 14.925208], [8000000, 23.575795], [10000000, 32.669981], [12000000, 44.220101], [14000000, 57.445932], [16000000, 65.757344], [18000000, 75.377341], [20000000, 89.895326], [22000000, 102.113357], [24000000, 115.803271], [26000000, 144.137479], [28000000, 153.612614], [30000000, 165.503467], [32000000, 172.942093], [34000000, 185.586427], [36000000, 199.989969], [38000000, 215.664597], [40000000, 224.778408]], "label": "Ruby 1.9 (C API) Hash"}, {"data": [[2000000, 1.099314], [4000000, 2.356593], [6000000, 4.126493], [8000000, 5.047605], [10000000, 8.16647], [12000000, 9.018635], [14000000, 9.939987], [16000000, 11.083878], [18000000, 16.905983], [20000000, 17.762169], [22000000, 18.724042], [24000000, 19.725591], [26000000, 20.738089], [28000000, 22.25302], [30000000, 22.868111], [32000000, 24.054732], [34000000, 35.419175], [36000000, 36.344967], [38000000, 37.263097], [40000000, 38.142163]], "label": "Lua 5.1 (C API) table"}], "sequential-memory": [{"data": [[2000000, 2590797824], [4000000, 2690662400], [6000000, 2826440704], [8000000, 2891452416], [10000000, 3100164096], [12000000, 3165175808], [14000000, 3230187520], [16000000, 3295199232], [18000000, 3508326400], [20000000, 3573338112], [22000000, 3638349824], [24000000, 3703361536], [26000000, 3768373248], [28000000, 3833384960], [30000000, 3898396672], [32000000, 3963408384], [34000000, 4028452864], [36000000, 4093464576], [38000000, 4459220992], [40000000, 4524232704]], "label": "GCC 4.4 std::unordered_map"}, {"data": [[2000000, 2744492032], [4000000, 2995105792], [6000000, 3245719552], [8000000, 3295002624], [10000000, 3343237120], [12000000, 3795181568], [14000000, 3844464640], [16000000, 3893747712], [18000000, 3943030784], [20000000, 3992313856], [22000000, 4041613312], [24000000, 4896202752], [26000000, 4945485824], [28000000, 4994768896], [30000000, 5043003392], [32000000, 5092286464], [34000000, 5141569536], [36000000, 5190852608], [38000000, 5240135680], [40000000, 5289418752]], "label": "Python 2.6 (C API) dict"}, {"data": [[2000000, 2567946240], [4000000, 2641354752], [6000000, 2706370560], [8000000, 2788163584], [10000000, 2853183488], [12000000, 2918195200], [14000000, 3016765440], [16000000, 3081777152], [18000000, 3146805248], [20000000, 3211816960], [22000000, 3276828672], [24000000, 3341840384], [26000000, 3473965056], [28000000, 3538976768], [30000000, 3603988480], [32000000, 3669000192], [34000000, 3734044672], [36000000, 3799056384], [38000000, 3864068096], [40000000, 3929079808]], "label": "Ruby 1.9 (C API) Hash"}, {"data": [[2000000, 2527064064], [4000000, 2560618496], [6000000, 2627727360], [8000000, 2627727360], [10000000, 2761945088], [12000000, 2761945088], [14000000, 2761945088], [16000000, 2761945088], [18000000, 3030380544], [20000000, 3030380544], [22000000, 3030380544], [24000000, 3030380544], [26000000, 3030380544], [28000000, 3030380544], [30000000, 3030380544], [32000000, 3030380544], [34000000, 3567251456], [36000000, 3567251456], [38000000, 3567251456], [40000000, 3567251456]], "label": "Lua 5.1 (C API) table"}]}
$(function () {
$.plot($("#sequential-runtime"), chart_data['sequential-runtime'], runtime_settings);
$.plot($("#random-runtime"), chart_data['random-runtime'], runtime_settings);
$.plot($("#delete-runtime"), chart_data['delete-runtime'], runtime_settings);
$.plot($("#sequential-memory"), chart_data['sequential-memory'], memory_settings);
$.plot($("#sequentialstring-runtime"), chart_data['sequentialstring-runtime'], runtime_settings);
$.plot($("#randomstring-runtime"), chart_data['randomstring-runtime'], runtime_settings);
$.plot($("#deletestring-runtime"), chart_data['deletestring-runtime'], runtime_settings);
$.plot($("#sequentialstring-memory"), chart_data['sequentialstring-memory'], memory_settings);
});
</script>
<style>
body, * { font-family: sans-serif; }
div.chart {
width: 700px;
height: 230px;
}
div.xaxis-title {
width: 700px;
text-align: center;
font-style: italic;
font-size: small;
color: #666;
}
</style>
<h3>Sequential Inserts: Execution Time (integers)</h3>
<div class="chart" id="sequential-runtime"></div>
<div class="xaxis-title">number of entries in hash table</div>
<h3>Sequential Inserts: Execution Time (strings)</h3>
<div class="chart" id="sequentialstring-runtime"></div>
<div class="xaxis-title">number of entries in hash table</div>
<h3>Random Inserts: Execution Time (integers)</h3>
<div class="chart" id="random-runtime"></div>
<div class="xaxis-title">number of entries in hash table</div>
<h3>Random Inserts: Execution Time (strings)</h3>
<div class="chart" id="randomstring-runtime"></div>
<div class="xaxis-title">number of entries in hash table</div>
<h3>Deletes: Execution Time (integers)</h3>
<div class="chart" id="delete-runtime"></div>
<div class="xaxis-title">number of entries in hash table</div>
<h3>Deletes: Execution Time (strings)</h3>
<div class="chart" id="deletestring-runtime"></div>
<div class="xaxis-title">number of entries in hash table</div>
<h3>Memory Usage (integers)</h3>
<div class="chart" id="sequential-memory"></div>
<div class="xaxis-title">number of entries in hash table</div>
<h3>Memory Usage (strings)</h3>
<div class="chart" id="sequentialstring-memory"></div>
<div class="xaxis-title">number of entries in hash table</div>
</body>
</html>