data-structure-typed 1.46.2 → 1.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +16 -16
- package/benchmark/report.html +1 -46
- package/benchmark/report.json +16 -385
- package/dist/cjs/data-structures/hash/hash-map.d.ts +10 -91
- package/dist/cjs/data-structures/hash/hash-map.js +22 -178
- package/dist/cjs/data-structures/hash/hash-map.js.map +1 -1
- package/dist/cjs/data-structures/queue/deque.d.ts +6 -74
- package/dist/cjs/data-structures/queue/deque.js +20 -142
- package/dist/cjs/data-structures/queue/deque.js.map +1 -1
- package/dist/mjs/data-structures/hash/hash-map.d.ts +10 -91
- package/dist/mjs/data-structures/hash/hash-map.js +22 -181
- package/dist/mjs/data-structures/queue/deque.d.ts +6 -74
- package/dist/mjs/data-structures/queue/deque.js +16 -140
- package/dist/umd/data-structure-typed.js +73 -349
- package/dist/umd/data-structure-typed.min.js +1 -1
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +4 -3
- package/src/data-structures/hash/hash-map.ts +25 -196
- package/src/data-structures/queue/deque.ts +22 -161
- package/test/performance/data-structures/hash/hash-map.test.ts +11 -11
- package/test/performance/reportor.ts +6 -3
- package/test/unit/data-structures/hash/hash-map.test.ts +4 -5
- package/test/unit/data-structures/queue/deque.test.ts +28 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
9
9
|
- [`auto-changelog`](https://github.com/CookPete/auto-changelog)
|
|
10
10
|
|
|
11
|
-
## [v1.46.
|
|
11
|
+
## [v1.46.3](https://github.com/zrwusa/data-structure-typed/compare/v1.35.0...main) (upcoming)
|
|
12
12
|
|
|
13
13
|
### Changes
|
|
14
14
|
|
package/README.md
CHANGED
|
@@ -808,52 +808,52 @@ Array.from(dijkstraResult?.seen ?? []).map(vertex => vertex.key) // ['A', 'B', '
|
|
|
808
808
|
[//]: # (No deletion!!! Start of Replace Section)
|
|
809
809
|
<div class="json-to-html-collapse clearfix 0">
|
|
810
810
|
<div class='collapsible level0' ><span class='json-to-html-label'>comparison</span></div>
|
|
811
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>SRC 10,000 add</td><td>0.57</td><td>1745.
|
|
811
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>SRC 10,000 add</td><td>0.57</td><td>1745.58</td><td>5.41e-6</td></tr><tr><td>CJS 10,000 add</td><td>0.57</td><td>1751.77</td><td>4.80e-6</td></tr><tr><td>MJS 10,000 add</td><td>0.57</td><td>1749.46</td><td>6.15e-6</td></tr><tr><td>SRC PQ 10,000 add & pop</td><td>3.42</td><td>292.80</td><td>2.97e-5</td></tr><tr><td>CJS PQ 10,000 add & pop</td><td>3.40</td><td>293.71</td><td>3.10e-5</td></tr><tr><td>MJS PQ 10,000 add & pop</td><td>3.41</td><td>293.62</td><td>3.51e-5</td></tr></table></div>
|
|
812
812
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
813
813
|
<div class='collapsible level0' ><span class='json-to-html-label'>avl-tree</span></div>
|
|
814
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add randomly</td><td>31.
|
|
814
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add randomly</td><td>31.25</td><td>32.00</td><td>3.13e-4</td></tr><tr><td>10,000 add & delete randomly</td><td>71.87</td><td>13.91</td><td>0.00</td></tr><tr><td>10,000 addMany</td><td>41.06</td><td>24.36</td><td>4.25e-4</td></tr><tr><td>10,000 get</td><td>28.10</td><td>35.59</td><td>2.51e-4</td></tr></table></div>
|
|
815
815
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
816
816
|
<div class='collapsible level0' ><span class='json-to-html-label'>binary-tree</span></div>
|
|
817
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000 add randomly</td><td>13.
|
|
817
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000 add randomly</td><td>13.02</td><td>76.79</td><td>1.25e-4</td></tr><tr><td>1,000 add & delete randomly</td><td>15.86</td><td>63.05</td><td>1.08e-4</td></tr><tr><td>1,000 addMany</td><td>10.26</td><td>97.46</td><td>7.97e-5</td></tr><tr><td>1,000 get</td><td>18.35</td><td>54.49</td><td>3.12e-4</td></tr><tr><td>1,000 dfs</td><td>154.50</td><td>6.47</td><td>7.28e-4</td></tr><tr><td>1,000 bfs</td><td>56.53</td><td>17.69</td><td>3.74e-4</td></tr><tr><td>1,000 morris</td><td>257.07</td><td>3.89</td><td>0.00</td></tr></table></div>
|
|
818
818
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
819
819
|
<div class='collapsible level0' ><span class='json-to-html-label'>bst</span></div>
|
|
820
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add randomly</td><td>28.
|
|
820
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add randomly</td><td>28.25</td><td>35.40</td><td>3.07e-4</td></tr><tr><td>10,000 add & delete randomly</td><td>67.69</td><td>14.77</td><td>8.51e-4</td></tr><tr><td>10,000 addMany</td><td>29.25</td><td>34.19</td><td>0.00</td></tr><tr><td>10,000 get</td><td>28.77</td><td>34.76</td><td>2.55e-4</td></tr></table></div>
|
|
821
821
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
822
822
|
<div class='collapsible level0' ><span class='json-to-html-label'>rb-tree</span></div>
|
|
823
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 add</td><td>
|
|
823
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 add</td><td>86.88</td><td>11.51</td><td>0.00</td></tr><tr><td>100,000 add & delete randomly</td><td>215.71</td><td>4.64</td><td>0.00</td></tr><tr><td>100,000 getNode</td><td>40.78</td><td>24.52</td><td>3.22e-4</td></tr></table></div>
|
|
824
824
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
825
825
|
<div class='collapsible level0' ><span class='json-to-html-label'>directed-graph</span></div>
|
|
826
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000 addVertex</td><td>0.10</td><td>
|
|
826
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000 addVertex</td><td>0.10</td><td>9992.98</td><td>8.63e-7</td></tr><tr><td>1,000 addEdge</td><td>6.11</td><td>163.74</td><td>1.31e-4</td></tr><tr><td>1,000 getVertex</td><td>0.05</td><td>2.16e+4</td><td>6.15e-7</td></tr><tr><td>1,000 getEdge</td><td>23.01</td><td>43.45</td><td>0.00</td></tr><tr><td>tarjan</td><td>222.33</td><td>4.50</td><td>0.02</td></tr><tr><td>tarjan all</td><td>224.99</td><td>4.44</td><td>0.02</td></tr><tr><td>topologicalSort</td><td>177.80</td><td>5.62</td><td>0.01</td></tr></table></div>
|
|
827
827
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
828
828
|
<div class='collapsible level0' ><span class='json-to-html-label'>hash-map</span></div>
|
|
829
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 set</td><td>
|
|
829
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 set</td><td>0.99</td><td>1006.45</td><td>2.07e-5</td></tr><tr><td>10,000 set & get</td><td>1.49</td><td>669.20</td><td>2.66e-5</td></tr></table></div>
|
|
830
830
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
831
831
|
<div class='collapsible level0' ><span class='json-to-html-label'>heap</span></div>
|
|
832
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add & pop</td><td>5.
|
|
832
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add & pop</td><td>5.78</td><td>172.88</td><td>4.96e-5</td></tr><tr><td>10,000 fib add & pop</td><td>357.91</td><td>2.79</td><td>0.01</td></tr></table></div>
|
|
833
833
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
834
834
|
<div class='collapsible level0' ><span class='json-to-html-label'>doubly-linked-list</span></div>
|
|
835
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>
|
|
835
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>207.57</td><td>4.82</td><td>0.04</td></tr><tr><td>1,000,000 unshift</td><td>224.17</td><td>4.46</td><td>0.10</td></tr><tr><td>1,000,000 unshift & shift</td><td>170.27</td><td>5.87</td><td>0.04</td></tr><tr><td>1,000,000 insertBefore</td><td>325.71</td><td>3.07</td><td>0.08</td></tr></table></div>
|
|
836
836
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
837
837
|
<div class='collapsible level0' ><span class='json-to-html-label'>singly-linked-list</span></div>
|
|
838
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 push & pop</td><td>
|
|
838
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 push & pop</td><td>223.42</td><td>4.48</td><td>0.02</td></tr><tr><td>10,000 insertBefore</td><td>253.67</td><td>3.94</td><td>0.02</td></tr></table></div>
|
|
839
839
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
840
840
|
<div class='collapsible level0' ><span class='json-to-html-label'>max-priority-queue</span></div>
|
|
841
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 refill & poll</td><td>
|
|
841
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 refill & poll</td><td>10.51</td><td>95.16</td><td>0.01</td></tr></table></div>
|
|
842
842
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
843
843
|
<div class='collapsible level0' ><span class='json-to-html-label'>priority-queue</span></div>
|
|
844
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 add & pop</td><td>
|
|
844
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 add & pop</td><td>105.61</td><td>9.47</td><td>0.00</td></tr></table></div>
|
|
845
845
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
846
846
|
<div class='collapsible level0' ><span class='json-to-html-label'>deque</span></div>
|
|
847
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>14.
|
|
847
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>14.01</td><td>71.39</td><td>4.74e-4</td></tr><tr><td>1,000,000 push & pop</td><td>23.12</td><td>43.25</td><td>6.61e-4</td></tr><tr><td>1,000,000 push & shift</td><td>25.00</td><td>40.00</td><td>0.01</td></tr><tr><td>1,000,000 unshift & shift</td><td>22.04</td><td>45.38</td><td>2.90e-4</td></tr></table></div>
|
|
848
848
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
849
849
|
<div class='collapsible level0' ><span class='json-to-html-label'>queue</span></div>
|
|
850
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>
|
|
850
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>48.25</td><td>20.72</td><td>0.01</td></tr><tr><td>1,000,000 push & shift</td><td>83.38</td><td>11.99</td><td>0.00</td></tr></table></div>
|
|
851
851
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
852
852
|
<div class='collapsible level0' ><span class='json-to-html-label'>stack</span></div>
|
|
853
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>
|
|
853
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>45.02</td><td>22.21</td><td>0.01</td></tr><tr><td>1,000,000 push & pop</td><td>58.63</td><td>17.06</td><td>0.03</td></tr></table></div>
|
|
854
854
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
855
855
|
<div class='collapsible level0' ><span class='json-to-html-label'>trie</span></div>
|
|
856
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 push</td><td>
|
|
856
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 push</td><td>44.82</td><td>22.31</td><td>0.00</td></tr><tr><td>100,000 getWords</td><td>111.82</td><td>8.94</td><td>0.05</td></tr></table></div>
|
|
857
857
|
</div>
|
|
858
858
|
|
|
859
859
|
[//]: # (No deletion!!! End of Replace Section)
|
package/benchmark/report.html
CHANGED
|
@@ -42,53 +42,8 @@
|
|
|
42
42
|
</head>
|
|
43
43
|
<body>
|
|
44
44
|
<div id="json-to-html"><div class="json-to-html-collapse clearfix 0">
|
|
45
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>comparison</span></div>
|
|
46
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>SRC 10,000 add</td><td>0.57</td><td>1745.23</td><td>4.83e-6</td></tr><tr><td>CJS 10,000 add</td><td>0.57</td><td>1752.47</td><td>4.64e-6</td></tr><tr><td>MJS 10,000 add</td><td>0.59</td><td>1687.89</td><td>1.40e-4</td></tr><tr><td>SRC PQ 10,000 add & pop</td><td>3.41</td><td>293.00</td><td>2.65e-5</td></tr><tr><td>CJS PQ 10,000 add & pop</td><td>4.92</td><td>203.31</td><td>3.60e-5</td></tr><tr><td>MJS PQ 10,000 add & pop</td><td>4.88</td><td>204.72</td><td>4.35e-5</td></tr></table></div>
|
|
47
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
48
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>avl-tree</span></div>
|
|
49
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add randomly</td><td>31.02</td><td>32.24</td><td>2.83e-4</td></tr><tr><td>10,000 add & delete randomly</td><td>71.45</td><td>14.00</td><td>0.00</td></tr><tr><td>10,000 addMany</td><td>40.21</td><td>24.87</td><td>4.47e-4</td></tr><tr><td>10,000 get</td><td>28.34</td><td>35.29</td><td>5.15e-4</td></tr></table></div>
|
|
50
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
51
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>binary-tree</span></div>
|
|
52
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000 add randomly</td><td>13.04</td><td>76.71</td><td>1.56e-4</td></tr><tr><td>1,000 add & delete randomly</td><td>15.79</td><td>63.33</td><td>1.40e-4</td></tr><tr><td>1,000 addMany</td><td>10.25</td><td>97.60</td><td>1.08e-4</td></tr><tr><td>1,000 get</td><td>18.31</td><td>54.60</td><td>1.50e-4</td></tr><tr><td>1,000 dfs</td><td>155.22</td><td>6.44</td><td>8.11e-4</td></tr><tr><td>1,000 bfs</td><td>56.66</td><td>17.65</td><td>6.70e-4</td></tr><tr><td>1,000 morris</td><td>254.79</td><td>3.92</td><td>5.27e-4</td></tr></table></div>
|
|
53
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
54
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>bst</span></div>
|
|
55
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add randomly</td><td>28.23</td><td>35.42</td><td>3.20e-4</td></tr><tr><td>10,000 add & delete randomly</td><td>68.35</td><td>14.63</td><td>8.46e-4</td></tr><tr><td>10,000 addMany</td><td>28.94</td><td>34.56</td><td>0.00</td></tr><tr><td>10,000 get</td><td>28.97</td><td>34.51</td><td>4.57e-4</td></tr></table></div>
|
|
56
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
57
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>rb-tree</span></div>
|
|
58
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 add</td><td>89.12</td><td>11.22</td><td>0.00</td></tr><tr><td>100,000 add & delete randomly</td><td>219.00</td><td>4.57</td><td>0.00</td></tr><tr><td>100,000 getNode</td><td>105.74</td><td>9.46</td><td>6.09e-4</td></tr></table></div>
|
|
59
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
60
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>directed-graph</span></div>
|
|
61
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000 addVertex</td><td>0.10</td><td>9902.14</td><td>9.12e-7</td></tr><tr><td>1,000 addEdge</td><td>6.11</td><td>163.67</td><td>1.29e-4</td></tr><tr><td>1,000 getVertex</td><td>0.05</td><td>2.16e+4</td><td>3.51e-7</td></tr><tr><td>1,000 getEdge</td><td>23.63</td><td>42.33</td><td>0.00</td></tr><tr><td>tarjan</td><td>222.85</td><td>4.49</td><td>0.01</td></tr><tr><td>tarjan all</td><td>223.79</td><td>4.47</td><td>0.00</td></tr><tr><td>topologicalSort</td><td>181.77</td><td>5.50</td><td>0.00</td></tr></table></div>
|
|
62
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
63
45
|
<div class='collapsible level0' ><span class='json-to-html-label'>hash-map</span></div>
|
|
64
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>
|
|
65
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
66
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>heap</span></div>
|
|
67
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add & pop</td><td>5.82</td><td>171.79</td><td>5.13e-5</td></tr><tr><td>10,000 fib add & pop</td><td>359.24</td><td>2.78</td><td>0.00</td></tr></table></div>
|
|
68
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
69
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>doubly-linked-list</span></div>
|
|
70
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>214.50</td><td>4.66</td><td>0.05</td></tr><tr><td>1,000,000 unshift</td><td>205.89</td><td>4.86</td><td>0.05</td></tr><tr><td>1,000,000 unshift & shift</td><td>168.93</td><td>5.92</td><td>0.04</td></tr><tr><td>1,000,000 insertBefore</td><td>291.32</td><td>3.43</td><td>0.05</td></tr></table></div>
|
|
71
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
72
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>singly-linked-list</span></div>
|
|
73
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 push & pop</td><td>215.82</td><td>4.63</td><td>0.02</td></tr><tr><td>10,000 insertBefore</td><td>248.56</td><td>4.02</td><td>0.01</td></tr></table></div>
|
|
74
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
75
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>max-priority-queue</span></div>
|
|
76
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 refill & poll</td><td>8.85</td><td>113.01</td><td>1.90e-4</td></tr></table></div>
|
|
77
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
78
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>priority-queue</span></div>
|
|
79
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 add & pop</td><td>104.23</td><td>9.59</td><td>0.00</td></tr></table></div>
|
|
80
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
81
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>deque</span></div>
|
|
82
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>14.25</td><td>70.18</td><td>1.63e-4</td></tr><tr><td>1,000,000 push & pop</td><td>23.15</td><td>43.21</td><td>2.07e-4</td></tr><tr><td>1,000,000 push & shift</td><td>24.16</td><td>41.40</td><td>1.78e-4</td></tr><tr><td>1,000,000 unshift & shift</td><td>22.28</td><td>44.88</td><td>1.56e-4</td></tr></table></div>
|
|
83
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
84
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>queue</span></div>
|
|
85
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>45.72</td><td>21.87</td><td>0.01</td></tr><tr><td>1,000,000 push & shift</td><td>81.75</td><td>12.23</td><td>0.00</td></tr></table></div>
|
|
86
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
87
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>stack</span></div>
|
|
88
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 push</td><td>44.30</td><td>22.57</td><td>0.01</td></tr><tr><td>1,000,000 push & pop</td><td>49.69</td><td>20.12</td><td>0.01</td></tr></table></div>
|
|
89
|
-
</div><div class="json-to-html-collapse clearfix 0">
|
|
90
|
-
<div class='collapsible level0' ><span class='json-to-html-label'>trie</span></div>
|
|
91
|
-
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>100,000 push</td><td>43.10</td><td>23.20</td><td>6.46e-4</td></tr><tr><td>100,000 getWords</td><td>85.45</td><td>11.70</td><td>0.00</td></tr></table></div>
|
|
46
|
+
<div class="content"><table style="display: table; width:100%; table-layout: fixed;"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>1,000,000 set</td><td>172.42</td><td>5.80</td><td>0.02</td></tr><tr><td>1,000,000 CPT set</td><td>172.27</td><td>5.80</td><td>0.02</td></tr><tr><td>1,000,000 set & get</td><td>182.19</td><td>5.49</td><td>0.02</td></tr><tr><td>1,000,000 CPT set & get</td><td>175.65</td><td>5.69</td><td>0.02</td></tr></table></div>
|
|
92
47
|
</div>
|
|
93
48
|
|
|
94
49
|
</div>
|
package/benchmark/report.json
CHANGED
|
@@ -1,400 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"comparison": {
|
|
3
|
-
"benchmarks": [
|
|
4
|
-
{
|
|
5
|
-
"test name": "SRC 10,000 add",
|
|
6
|
-
"time taken (ms)": "0.57",
|
|
7
|
-
"executions per sec": "1745.23",
|
|
8
|
-
"sample deviation": "4.83e-6"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"test name": "CJS 10,000 add",
|
|
12
|
-
"time taken (ms)": "0.57",
|
|
13
|
-
"executions per sec": "1752.47",
|
|
14
|
-
"sample deviation": "4.64e-6"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"test name": "MJS 10,000 add",
|
|
18
|
-
"time taken (ms)": "0.59",
|
|
19
|
-
"executions per sec": "1687.89",
|
|
20
|
-
"sample deviation": "1.40e-4"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"test name": "SRC PQ 10,000 add & pop",
|
|
24
|
-
"time taken (ms)": "3.41",
|
|
25
|
-
"executions per sec": "293.00",
|
|
26
|
-
"sample deviation": "2.65e-5"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"test name": "CJS PQ 10,000 add & pop",
|
|
30
|
-
"time taken (ms)": "4.92",
|
|
31
|
-
"executions per sec": "203.31",
|
|
32
|
-
"sample deviation": "3.60e-5"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"test name": "MJS PQ 10,000 add & pop",
|
|
36
|
-
"time taken (ms)": "4.88",
|
|
37
|
-
"executions per sec": "204.72",
|
|
38
|
-
"sample deviation": "4.35e-5"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"testName": "comparison"
|
|
42
|
-
},
|
|
43
|
-
"avl-tree": {
|
|
44
|
-
"benchmarks": [
|
|
45
|
-
{
|
|
46
|
-
"test name": "10,000 add randomly",
|
|
47
|
-
"time taken (ms)": "31.02",
|
|
48
|
-
"executions per sec": "32.24",
|
|
49
|
-
"sample deviation": "2.83e-4"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"test name": "10,000 add & delete randomly",
|
|
53
|
-
"time taken (ms)": "71.45",
|
|
54
|
-
"executions per sec": "14.00",
|
|
55
|
-
"sample deviation": "0.00"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"test name": "10,000 addMany",
|
|
59
|
-
"time taken (ms)": "40.21",
|
|
60
|
-
"executions per sec": "24.87",
|
|
61
|
-
"sample deviation": "4.47e-4"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"test name": "10,000 get",
|
|
65
|
-
"time taken (ms)": "28.34",
|
|
66
|
-
"executions per sec": "35.29",
|
|
67
|
-
"sample deviation": "5.15e-4"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"testName": "avl-tree"
|
|
71
|
-
},
|
|
72
|
-
"binary-tree": {
|
|
73
|
-
"benchmarks": [
|
|
74
|
-
{
|
|
75
|
-
"test name": "1,000 add randomly",
|
|
76
|
-
"time taken (ms)": "13.04",
|
|
77
|
-
"executions per sec": "76.71",
|
|
78
|
-
"sample deviation": "1.56e-4"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"test name": "1,000 add & delete randomly",
|
|
82
|
-
"time taken (ms)": "15.79",
|
|
83
|
-
"executions per sec": "63.33",
|
|
84
|
-
"sample deviation": "1.40e-4"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"test name": "1,000 addMany",
|
|
88
|
-
"time taken (ms)": "10.25",
|
|
89
|
-
"executions per sec": "97.60",
|
|
90
|
-
"sample deviation": "1.08e-4"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"test name": "1,000 get",
|
|
94
|
-
"time taken (ms)": "18.31",
|
|
95
|
-
"executions per sec": "54.60",
|
|
96
|
-
"sample deviation": "1.50e-4"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"test name": "1,000 dfs",
|
|
100
|
-
"time taken (ms)": "155.22",
|
|
101
|
-
"executions per sec": "6.44",
|
|
102
|
-
"sample deviation": "8.11e-4"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"test name": "1,000 bfs",
|
|
106
|
-
"time taken (ms)": "56.66",
|
|
107
|
-
"executions per sec": "17.65",
|
|
108
|
-
"sample deviation": "6.70e-4"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"test name": "1,000 morris",
|
|
112
|
-
"time taken (ms)": "254.79",
|
|
113
|
-
"executions per sec": "3.92",
|
|
114
|
-
"sample deviation": "5.27e-4"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"testName": "binary-tree"
|
|
118
|
-
},
|
|
119
|
-
"bst": {
|
|
120
|
-
"benchmarks": [
|
|
121
|
-
{
|
|
122
|
-
"test name": "10,000 add randomly",
|
|
123
|
-
"time taken (ms)": "28.23",
|
|
124
|
-
"executions per sec": "35.42",
|
|
125
|
-
"sample deviation": "3.20e-4"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"test name": "10,000 add & delete randomly",
|
|
129
|
-
"time taken (ms)": "68.35",
|
|
130
|
-
"executions per sec": "14.63",
|
|
131
|
-
"sample deviation": "8.46e-4"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"test name": "10,000 addMany",
|
|
135
|
-
"time taken (ms)": "28.94",
|
|
136
|
-
"executions per sec": "34.56",
|
|
137
|
-
"sample deviation": "0.00"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"test name": "10,000 get",
|
|
141
|
-
"time taken (ms)": "28.97",
|
|
142
|
-
"executions per sec": "34.51",
|
|
143
|
-
"sample deviation": "4.57e-4"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"testName": "bst"
|
|
147
|
-
},
|
|
148
|
-
"rb-tree": {
|
|
149
|
-
"benchmarks": [
|
|
150
|
-
{
|
|
151
|
-
"test name": "100,000 add",
|
|
152
|
-
"time taken (ms)": "89.12",
|
|
153
|
-
"executions per sec": "11.22",
|
|
154
|
-
"sample deviation": "0.00"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"test name": "100,000 add & delete randomly",
|
|
158
|
-
"time taken (ms)": "219.00",
|
|
159
|
-
"executions per sec": "4.57",
|
|
160
|
-
"sample deviation": "0.00"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"test name": "100,000 getNode",
|
|
164
|
-
"time taken (ms)": "105.74",
|
|
165
|
-
"executions per sec": "9.46",
|
|
166
|
-
"sample deviation": "6.09e-4"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"testName": "rb-tree"
|
|
170
|
-
},
|
|
171
|
-
"directed-graph": {
|
|
172
|
-
"benchmarks": [
|
|
173
|
-
{
|
|
174
|
-
"test name": "1,000 addVertex",
|
|
175
|
-
"time taken (ms)": "0.10",
|
|
176
|
-
"executions per sec": "9902.14",
|
|
177
|
-
"sample deviation": "9.12e-7"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"test name": "1,000 addEdge",
|
|
181
|
-
"time taken (ms)": "6.11",
|
|
182
|
-
"executions per sec": "163.67",
|
|
183
|
-
"sample deviation": "1.29e-4"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"test name": "1,000 getVertex",
|
|
187
|
-
"time taken (ms)": "0.05",
|
|
188
|
-
"executions per sec": "2.16e+4",
|
|
189
|
-
"sample deviation": "3.51e-7"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"test name": "1,000 getEdge",
|
|
193
|
-
"time taken (ms)": "23.63",
|
|
194
|
-
"executions per sec": "42.33",
|
|
195
|
-
"sample deviation": "0.00"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"test name": "tarjan",
|
|
199
|
-
"time taken (ms)": "222.85",
|
|
200
|
-
"executions per sec": "4.49",
|
|
201
|
-
"sample deviation": "0.01"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"test name": "tarjan all",
|
|
205
|
-
"time taken (ms)": "223.79",
|
|
206
|
-
"executions per sec": "4.47",
|
|
207
|
-
"sample deviation": "0.00"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"test name": "topologicalSort",
|
|
211
|
-
"time taken (ms)": "181.77",
|
|
212
|
-
"executions per sec": "5.50",
|
|
213
|
-
"sample deviation": "0.00"
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
"testName": "directed-graph"
|
|
217
|
-
},
|
|
218
2
|
"hash-map": {
|
|
219
3
|
"benchmarks": [
|
|
220
4
|
{
|
|
221
|
-
"test name": "
|
|
222
|
-
"time taken (ms)": "
|
|
223
|
-
"executions per sec": "
|
|
224
|
-
"sample deviation": "2.06e-5"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"test name": "10,000 set & get",
|
|
228
|
-
"time taken (ms)": "1.51",
|
|
229
|
-
"executions per sec": "661.53",
|
|
230
|
-
"sample deviation": "2.65e-5"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
"testName": "hash-map"
|
|
234
|
-
},
|
|
235
|
-
"heap": {
|
|
236
|
-
"benchmarks": [
|
|
237
|
-
{
|
|
238
|
-
"test name": "10,000 add & pop",
|
|
239
|
-
"time taken (ms)": "5.82",
|
|
240
|
-
"executions per sec": "171.79",
|
|
241
|
-
"sample deviation": "5.13e-5"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"test name": "10,000 fib add & pop",
|
|
245
|
-
"time taken (ms)": "359.24",
|
|
246
|
-
"executions per sec": "2.78",
|
|
247
|
-
"sample deviation": "0.00"
|
|
248
|
-
}
|
|
249
|
-
],
|
|
250
|
-
"testName": "heap"
|
|
251
|
-
},
|
|
252
|
-
"doubly-linked-list": {
|
|
253
|
-
"benchmarks": [
|
|
254
|
-
{
|
|
255
|
-
"test name": "1,000,000 push",
|
|
256
|
-
"time taken (ms)": "214.50",
|
|
257
|
-
"executions per sec": "4.66",
|
|
258
|
-
"sample deviation": "0.05"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"test name": "1,000,000 unshift",
|
|
262
|
-
"time taken (ms)": "205.89",
|
|
263
|
-
"executions per sec": "4.86",
|
|
264
|
-
"sample deviation": "0.05"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"test name": "1,000,000 unshift & shift",
|
|
268
|
-
"time taken (ms)": "168.93",
|
|
269
|
-
"executions per sec": "5.92",
|
|
270
|
-
"sample deviation": "0.04"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"test name": "1,000,000 insertBefore",
|
|
274
|
-
"time taken (ms)": "291.32",
|
|
275
|
-
"executions per sec": "3.43",
|
|
276
|
-
"sample deviation": "0.05"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"testName": "doubly-linked-list"
|
|
280
|
-
},
|
|
281
|
-
"singly-linked-list": {
|
|
282
|
-
"benchmarks": [
|
|
283
|
-
{
|
|
284
|
-
"test name": "10,000 push & pop",
|
|
285
|
-
"time taken (ms)": "215.82",
|
|
286
|
-
"executions per sec": "4.63",
|
|
5
|
+
"test name": "1,000,000 set",
|
|
6
|
+
"time taken (ms)": "172.42",
|
|
7
|
+
"executions per sec": "5.80",
|
|
287
8
|
"sample deviation": "0.02"
|
|
288
9
|
},
|
|
289
10
|
{
|
|
290
|
-
"test name": "
|
|
291
|
-
"time taken (ms)": "
|
|
292
|
-
"executions per sec": "
|
|
293
|
-
"sample deviation": "0.
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"testName": "singly-linked-list"
|
|
297
|
-
},
|
|
298
|
-
"max-priority-queue": {
|
|
299
|
-
"benchmarks": [
|
|
300
|
-
{
|
|
301
|
-
"test name": "10,000 refill & poll",
|
|
302
|
-
"time taken (ms)": "8.85",
|
|
303
|
-
"executions per sec": "113.01",
|
|
304
|
-
"sample deviation": "1.90e-4"
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"testName": "max-priority-queue"
|
|
308
|
-
},
|
|
309
|
-
"priority-queue": {
|
|
310
|
-
"benchmarks": [
|
|
311
|
-
{
|
|
312
|
-
"test name": "100,000 add & pop",
|
|
313
|
-
"time taken (ms)": "104.23",
|
|
314
|
-
"executions per sec": "9.59",
|
|
315
|
-
"sample deviation": "0.00"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"testName": "priority-queue"
|
|
319
|
-
},
|
|
320
|
-
"deque": {
|
|
321
|
-
"benchmarks": [
|
|
322
|
-
{
|
|
323
|
-
"test name": "1,000,000 push",
|
|
324
|
-
"time taken (ms)": "14.25",
|
|
325
|
-
"executions per sec": "70.18",
|
|
326
|
-
"sample deviation": "1.63e-4"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"test name": "1,000,000 push & pop",
|
|
330
|
-
"time taken (ms)": "23.15",
|
|
331
|
-
"executions per sec": "43.21",
|
|
332
|
-
"sample deviation": "2.07e-4"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"test name": "1,000,000 push & shift",
|
|
336
|
-
"time taken (ms)": "24.16",
|
|
337
|
-
"executions per sec": "41.40",
|
|
338
|
-
"sample deviation": "1.78e-4"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"test name": "1,000,000 unshift & shift",
|
|
342
|
-
"time taken (ms)": "22.28",
|
|
343
|
-
"executions per sec": "44.88",
|
|
344
|
-
"sample deviation": "1.56e-4"
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"testName": "deque"
|
|
348
|
-
},
|
|
349
|
-
"queue": {
|
|
350
|
-
"benchmarks": [
|
|
351
|
-
{
|
|
352
|
-
"test name": "1,000,000 push",
|
|
353
|
-
"time taken (ms)": "45.72",
|
|
354
|
-
"executions per sec": "21.87",
|
|
355
|
-
"sample deviation": "0.01"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"test name": "1,000,000 push & shift",
|
|
359
|
-
"time taken (ms)": "81.75",
|
|
360
|
-
"executions per sec": "12.23",
|
|
361
|
-
"sample deviation": "0.00"
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
"testName": "queue"
|
|
365
|
-
},
|
|
366
|
-
"stack": {
|
|
367
|
-
"benchmarks": [
|
|
368
|
-
{
|
|
369
|
-
"test name": "1,000,000 push",
|
|
370
|
-
"time taken (ms)": "44.30",
|
|
371
|
-
"executions per sec": "22.57",
|
|
372
|
-
"sample deviation": "0.01"
|
|
11
|
+
"test name": "1,000,000 CPT set",
|
|
12
|
+
"time taken (ms)": "172.27",
|
|
13
|
+
"executions per sec": "5.80",
|
|
14
|
+
"sample deviation": "0.02"
|
|
373
15
|
},
|
|
374
16
|
{
|
|
375
|
-
"test name": "1,000,000
|
|
376
|
-
"time taken (ms)": "
|
|
377
|
-
"executions per sec": "
|
|
378
|
-
"sample deviation": "0.
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
|
-
"testName": "stack"
|
|
382
|
-
},
|
|
383
|
-
"trie": {
|
|
384
|
-
"benchmarks": [
|
|
385
|
-
{
|
|
386
|
-
"test name": "100,000 push",
|
|
387
|
-
"time taken (ms)": "43.10",
|
|
388
|
-
"executions per sec": "23.20",
|
|
389
|
-
"sample deviation": "6.46e-4"
|
|
17
|
+
"test name": "1,000,000 set & get",
|
|
18
|
+
"time taken (ms)": "182.19",
|
|
19
|
+
"executions per sec": "5.49",
|
|
20
|
+
"sample deviation": "0.02"
|
|
390
21
|
},
|
|
391
22
|
{
|
|
392
|
-
"test name": "
|
|
393
|
-
"time taken (ms)": "
|
|
394
|
-
"executions per sec": "
|
|
395
|
-
"sample deviation": "0.
|
|
23
|
+
"test name": "1,000,000 CPT set & get",
|
|
24
|
+
"time taken (ms)": "175.65",
|
|
25
|
+
"executions per sec": "5.69",
|
|
26
|
+
"sample deviation": "0.02"
|
|
396
27
|
}
|
|
397
28
|
],
|
|
398
|
-
"testName": "
|
|
29
|
+
"testName": "hash-map"
|
|
399
30
|
}
|
|
400
31
|
}
|