forked from mackstann/hash-table-shootout
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcharts_first_int.html
101 lines (79 loc) · 11.4 KB
/
charts_first_int.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
<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.20874], [6000000, 0.615569], [10000000, 1.016729], [14000000, 1.422814], [18000000, 1.828542], [22000000, 2.236211], [26000000, 2.642483], [30000000, 3.047782]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [const char*]"}, {"data": [[2000000, 0.210176], [6000000, 0.612932], [10000000, 1.012489], [14000000, 1.418993], [18000000, 1.821539], [22000000, 2.22726], [26000000, 2.632795], [30000000, 3.036989]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [std::string]"}, {"data": [[2000000, 0.094758], [6000000, 0.282705], [10000000, 0.47299], [14000000, 0.662055], [18000000, 0.851662], [22000000, 1.040472], [26000000, 1.230521], [30000000, 1.418473]], "label": "Python 2.7.2 (C API) dict"}, {"data": [[2000000, 0.239288], [6000000, 0.729905], [10000000, 1.225358], [14000000, 1.602651], [18000000, 2.082571], [22000000, 2.638071], [26000000, 2.879808], [30000000, 3.419568]], "label": "Ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] (C API) Hash"}, {"data": [[2000000, 1.729337], [6000000, 5.179884], [10000000, 8.438544], [14000000, 13.211486], [18000000, 15.727632], [22000000, 20.400946], [26000000, 25.624623], [30000000, 30.538997]], "label": "Perl 5.12.4 built for darwin-thread-multi-2level (C API) hash"}, {"data": [[2000000, 0.283814], [6000000, 0.917876], [10000000, 1.832406], [14000000, 2.115999], [18000000, 2.791693], [22000000, 3.6058], [26000000, 4.451745], [30000000, 5.285084]], "label": "Tcl 8.5 (C API) hash"}, {"data": [[2000000, 0.063955], [6000000, 0.195356], [10000000, 0.331859], [14000000, 0.448987], [18000000, 0.604391], [22000000, 0.721819], [26000000, 0.839309], [30000000, 0.957035]], "label": "Lua 5.1.5 (C API) table (via LuaHashMap)"}, {"data": [[2000000, 0.057256], [6000000, 0.175526], [10000000, 0.298663], [14000000, 0.402947], [18000000, 0.54513], [22000000, 0.649054], [26000000, 0.753564], [30000000, 0.857823]], "label": "Lua 5.2.1 (C API) table (via LuaHashMap)"}], "sequential-runtime": [{"data": [[2000000, 0.172754], [6000000, 0.561377], [10000000, 0.995877], [14000000, 1.272388], [18000000, 1.860456], [22000000, 2.139545], [26000000, 2.423344], [30000000, 2.687319]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [const char*]"}, {"data": [[2000000, 0.173893], [6000000, 0.562673], [10000000, 0.996741], [14000000, 1.268543], [18000000, 1.882378], [22000000, 2.142969], [26000000, 2.422813], [30000000, 2.694048]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [std::string]"}, {"data": [[2000000, 0.213401], [6000000, 0.757988], [10000000, 0.916216], [14000000, 1.59841], [18000000, 1.74895], [22000000, 1.933672], [26000000, 3.172499], [30000000, 3.339227]], "label": "Python 2.7.2 (C API) dict"}, {"data": [[2000000, 0.337302], [6000000, 1.573491], [10000000, 3.203129], [14000000, 5.231554], [18000000, 6.952239], [22000000, 8.743352], [26000000, 11.593821], [30000000, 13.353092]], "label": "Ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] (C API) Hash"}, {"data": [[2000000, 1.596922], [6000000, 5.59521], [10000000, 10.597601], [14000000, 13.596919], [18000000, 21.506854], [22000000, 24.654087], [26000000, 27.818875], [30000000, 31.04235]], "label": "Perl 5.12.4 built for darwin-thread-multi-2level (C API) hash"}, {"data": [[2000000, 0.498803], [6000000, 1.827907], [10000000, 2.751272], [14000000, 5.865454], [18000000, 6.62491], [22000000, 7.507408], [26000000, 8.408787], [30000000, 9.259151]], "label": "Tcl 8.5 (C API) hash"}, {"data": [[2000000, 0.082455], [6000000, 0.277019], [10000000, 0.47641], [14000000, 0.595748], [18000000, 0.88469], [22000000, 1.012663], [26000000, 1.132498], [30000000, 1.257434]], "label": "Lua 5.1.5 (C API) table (via LuaHashMap)"}, {"data": [[2000000, 0.075146], [6000000, 0.249478], [10000000, 0.439081], [14000000, 0.546321], [18000000, 0.820011], [22000000, 0.928854], [26000000, 1.034415], [30000000, 1.142977]], "label": "Lua 5.2.1 (C API) table (via LuaHashMap)"}], "random-runtime": [{"data": [[2000000, 0.861376], [6000000, 3.362788], [10000000, 6.485418], [14000000, 7.755326], [18000000, 9.210024], [22000000, 14.41651], [26000000, 15.817948], [30000000, 17.287161]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [const char*]"}, {"data": [[2000000, 0.865104], [6000000, 3.368086], [10000000, 6.492851], [14000000, 7.754998], [18000000, 9.204468], [22000000, 14.425972], [26000000, 15.821773], [30000000, 17.306336]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [std::string]"}, {"data": [[2000000, 0.75403], [6000000, 2.792663], [10000000, 3.879628], [14000000, 6.523363], [18000000, 7.771089], [22000000, 9.083981], [26000000, 13.650392], [30000000, 15.031906]], "label": "Python 2.7.2 (C API) dict"}, {"data": [[2000000, 2.751805], [6000000, 14.869855], [10000000, 31.877632], [14000000, 55.335075], [18000000, 72.54678], [22000000, 97.901225], [26000000, 137.746978], [30000000, 159.228569]], "label": "Ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] (C API) Hash"}, {"data": [[2000000, 1.614366], [6000000, 5.64489], [10000000, 10.632462], [14000000, 13.638327], [18000000, 21.536541], [22000000, 24.627068], [26000000, 28.157661], [30000000, 31.336521]], "label": "Perl 5.12.4 built for darwin-thread-multi-2level (C API) hash"}, {"data": [[2000000, 1.045386], [6000000, 3.583547], [10000000, 6.197642], [14000000, 11.294534], [18000000, 13.413568], [22000000, 15.781648], [26000000, 18.385187], [30000000, 21.308841]], "label": "Tcl 8.5 (C API) hash"}, {"data": [[2000000, 0.843901], [6000000, 3.202643], [10000000, 6.30854], [14000000, 7.836549], [18000000, 13.211123], [22000000, 14.705873], [26000000, 16.493543], [30000000, 18.430268]], "label": "Lua 5.1.5 (C API) table (via LuaHashMap)"}, {"data": [[2000000, 0.921688], [6000000, 3.359776], [10000000, 6.525091], [14000000, 7.961184], [18000000, 13.341293], [22000000, 14.781274], [26000000, 16.415963], [30000000, 18.262572]], "label": "Lua 5.2.1 (C API) table (via LuaHashMap)"}], "sequential-memory": [{"data": [[2000000, 2589757440], [6000000, 2825400320], [10000000, 3098075136], [14000000, 3228098560], [18000000, 3506237440], [22000000, 3636260864], [26000000, 3766284288], [30000000, 3896307712]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [const char*]"}, {"data": [[2000000, 2589761536], [6000000, 2825404416], [10000000, 3098079232], [14000000, 3228102656], [18000000, 3506241536], [22000000, 3636264960], [26000000, 3766288384], [30000000, 3896311808]], "label": "llvm unordered_map Apple clang version version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) std::tr1::unordered_map [std::string]"}, {"data": [[2000000, 2743660544], [6000000, 3244888064], [10000000, 3342405632], [14000000, 3843633152], [18000000, 3942199296], [22000000, 4040781824], [26000000, 4944654336], [30000000, 5043220480]], "label": "Python 2.7.2 (C API) dict"}, {"data": [[2000000, 2565836800], [6000000, 2704261120], [10000000, 2851074048], [14000000, 3014656000], [18000000, 3144695808], [22000000, 3274719232], [26000000, 3471855616], [30000000, 3601879040]], "label": "Ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] (C API) Hash"}, {"data": [[2000000, 2865446912], [6000000, 3661332480], [10000000, 4508602368], [14000000, 5162917888], [18000000, 6152806400], [22000000, 6723231744], [26000000, 7377551360], [30000000, 8023474176]], "label": "Perl 5.12.4 built for darwin-thread-multi-2level (C API) hash"}, {"data": [[2000000, 2629148672], [6000000, 2914369536], [10000000, 3174420480], [14000000, 3568689152], [18000000, 3820351488], [22000000, 4080398336], [26000000, 4340445184], [30000000, 4592103424]], "label": "Tcl 8.5 (C API) hash"}, {"data": [[2000000, 2524983296], [6000000, 2625646592], [10000000, 2759864320], [14000000, 2759864320], [18000000, 3028299776], [22000000, 3028299776], [26000000, 3028299776], [30000000, 3028299776]], "label": "Lua 5.1.5 (C API) table (via LuaHashMap)"}, {"data": [[2000000, 2524991488], [6000000, 2625654784], [10000000, 2759872512], [14000000, 2759872512], [18000000, 3028307968], [22000000, 3028307968], [26000000, 3028307968], [30000000, 3028307968]], "label": "Lua 5.2.1 (C API) table (via LuaHashMap)"}]}
$(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);
});
</script>
<style>
body, * { font-family: sans-serif; }
div.chart {
width: 960px;
height: 560px;
}
div.xaxis-title {
width: 960px;
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>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>Deletes: Execution Time (integers)</h3>
<div class="chart" id="delete-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>
</body>
</html>