data-structure-typed 1.51.0 → 1.51.1
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 +13 -13
- package/benchmark/report.html +37 -1
- package/benchmark/report.json +378 -12
- package/dist/cjs/data-structures/binary-tree/avl-tree-multi-map.js +1 -1
- package/dist/cjs/data-structures/binary-tree/avl-tree-multi-map.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/avl-tree.d.ts +1 -1
- package/dist/cjs/data-structures/binary-tree/avl-tree.js +2 -2
- package/dist/cjs/data-structures/binary-tree/avl-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/binary-tree.d.ts +1 -1
- package/dist/cjs/data-structures/binary-tree/binary-tree.js +73 -73
- package/dist/cjs/data-structures/binary-tree/binary-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/bst.js +39 -39
- package/dist/cjs/data-structures/binary-tree/bst.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/rb-tree.d.ts +1 -1
- package/dist/cjs/data-structures/binary-tree/rb-tree.js +3 -3
- package/dist/cjs/data-structures/binary-tree/rb-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/tree-multi-map.d.ts +1 -1
- package/dist/cjs/data-structures/binary-tree/tree-multi-map.js +2 -2
- package/dist/cjs/data-structures/binary-tree/tree-multi-map.js.map +1 -1
- package/dist/mjs/data-structures/binary-tree/avl-tree-multi-map.js +1 -1
- package/dist/mjs/data-structures/binary-tree/avl-tree.d.ts +1 -1
- package/dist/mjs/data-structures/binary-tree/avl-tree.js +2 -2
- package/dist/mjs/data-structures/binary-tree/binary-tree.d.ts +1 -1
- package/dist/mjs/data-structures/binary-tree/binary-tree.js +73 -73
- package/dist/mjs/data-structures/binary-tree/bst.js +39 -39
- package/dist/mjs/data-structures/binary-tree/rb-tree.d.ts +1 -1
- package/dist/mjs/data-structures/binary-tree/rb-tree.js +3 -3
- package/dist/mjs/data-structures/binary-tree/tree-multi-map.d.ts +1 -1
- package/dist/mjs/data-structures/binary-tree/tree-multi-map.js +2 -2
- package/dist/umd/data-structure-typed.js +119 -119
- package/dist/umd/data-structure-typed.min.js +2 -2
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +6 -6
- package/src/data-structures/binary-tree/avl-tree-multi-map.ts +1 -1
- package/src/data-structures/binary-tree/avl-tree.ts +2 -2
- package/src/data-structures/binary-tree/binary-tree.ts +71 -71
- package/src/data-structures/binary-tree/bst.ts +33 -33
- package/src/data-structures/binary-tree/rb-tree.ts +3 -3
- package/src/data-structures/binary-tree/tree-multi-map.ts +2 -2
- package/test/unit/data-structures/binary-tree/tree-multi-map.test.ts +1 -0
- package/test/utils/big-o.ts +12 -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.51.
|
|
11
|
+
## [v1.51.1](https://github.com/zrwusa/data-structure-typed/compare/v1.35.0...main) (upcoming)
|
|
12
12
|
|
|
13
13
|
### Changes
|
|
14
14
|
|
package/README.md
CHANGED
|
@@ -687,43 +687,43 @@ Version 11.7.9
|
|
|
687
687
|
[//]: # (No deletion!!! Start of Replace Section)
|
|
688
688
|
<div class="json-to-html-collapse clearfix 0">
|
|
689
689
|
<div class='collapsible level0' ><span class='json-to-html-label'>heap</span></div>
|
|
690
|
-
<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>6.
|
|
690
|
+
<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>6.36</td><td>157.24</td><td>1.88e-4</td></tr><tr><td>100,000 add & poll</td><td>32.56</td><td>30.72</td><td>0.01</td></tr></table></div>
|
|
691
691
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
692
692
|
<div class='collapsible level0' ><span class='json-to-html-label'>rb-tree</span></div>
|
|
693
|
-
<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>55.
|
|
693
|
+
<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>55.46</td><td>18.03</td><td>0.00</td></tr><tr><td>100,000 get</td><td>114.63</td><td>8.72</td><td>0.00</td></tr><tr><td>100,000 iterator</td><td>26.52</td><td>37.71</td><td>0.01</td></tr><tr><td>100,000 add & delete orderly</td><td>128.13</td><td>7.80</td><td>0.02</td></tr><tr><td>100,000 add & delete randomly</td><td>228.89</td><td>4.37</td><td>0.00</td></tr></table></div>
|
|
694
694
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
695
695
|
<div class='collapsible level0' ><span class='json-to-html-label'>queue</span></div>
|
|
696
|
-
<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>
|
|
696
|
+
<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>43.53</td><td>22.97</td><td>0.01</td></tr><tr><td>100,000 push & shift</td><td>4.80</td><td>208.14</td><td>5.81e-4</td></tr><tr><td>Native JS Array 100,000 push & shift</td><td>2201.64</td><td>0.45</td><td>0.11</td></tr></table></div>
|
|
697
697
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
698
698
|
<div class='collapsible level0' ><span class='json-to-html-label'>deque</span></div>
|
|
699
|
-
<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>
|
|
699
|
+
<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>25.91</td><td>38.59</td><td>0.01</td></tr><tr><td>1,000,000 push & pop</td><td>30.71</td><td>32.57</td><td>0.00</td></tr><tr><td>1,000,000 push & shift</td><td>30.59</td><td>32.69</td><td>0.00</td></tr><tr><td>100,000 push & shift</td><td>3.23</td><td>309.94</td><td>2.61e-4</td></tr><tr><td>Native JS Array 100,000 push & shift</td><td>2525.12</td><td>0.40</td><td>0.39</td></tr><tr><td>100,000 unshift & shift</td><td>2.87</td><td>347.92</td><td>2.86e-4</td></tr><tr><td>Native JS Array 100,000 unshift & shift</td><td>4400.38</td><td>0.23</td><td>0.14</td></tr></table></div>
|
|
700
700
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
701
701
|
<div class='collapsible level0' ><span class='json-to-html-label'>hash-map</span></div>
|
|
702
|
-
<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>
|
|
702
|
+
<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>113.02</td><td>8.85</td><td>0.02</td></tr><tr><td>Native JS Map 1,000,000 set</td><td>201.23</td><td>4.97</td><td>0.00</td></tr><tr><td>Native JS Set 1,000,000 add</td><td>168.53</td><td>5.93</td><td>0.01</td></tr><tr><td>1,000,000 set & get</td><td>118.49</td><td>8.44</td><td>0.02</td></tr><tr><td>Native JS Map 1,000,000 set & get</td><td>263.49</td><td>3.80</td><td>0.01</td></tr><tr><td>Native JS Set 1,000,000 add & has</td><td>168.28</td><td>5.94</td><td>0.01</td></tr><tr><td>1,000,000 ObjKey set & get</td><td>309.88</td><td>3.23</td><td>0.01</td></tr><tr><td>Native JS Map 1,000,000 ObjKey set & get</td><td>282.50</td><td>3.54</td><td>0.04</td></tr><tr><td>Native JS Set 1,000,000 ObjKey add & has</td><td>268.42</td><td>3.73</td><td>0.03</td></tr></table></div>
|
|
703
703
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
704
704
|
<div class='collapsible level0' ><span class='json-to-html-label'>trie</span></div>
|
|
705
|
-
<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>
|
|
705
|
+
<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.85</td><td>22.30</td><td>0.01</td></tr><tr><td>100,000 getWords</td><td>84.84</td><td>11.79</td><td>0.01</td></tr></table></div>
|
|
706
706
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
707
707
|
<div class='collapsible level0' ><span class='json-to-html-label'>avl-tree</span></div>
|
|
708
|
-
<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>
|
|
708
|
+
<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>381.63</td><td>2.62</td><td>0.00</td></tr><tr><td>100,000 get</td><td>354.69</td><td>2.82</td><td>0.00</td></tr><tr><td>100,000 iterator</td><td>29.87</td><td>33.48</td><td>0.01</td></tr><tr><td>100,000 add & delete orderly</td><td>652.77</td><td>1.53</td><td>0.00</td></tr><tr><td>100,000 add & delete randomly</td><td>929.07</td><td>1.08</td><td>0.00</td></tr></table></div>
|
|
709
709
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
710
710
|
<div class='collapsible level0' ><span class='json-to-html-label'>binary-tree-overall</span></div>
|
|
711
|
-
<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 RBTree add</td><td>5.
|
|
711
|
+
<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 RBTree add</td><td>5.55</td><td>180.05</td><td>7.09e-5</td></tr><tr><td>10,000 RBTree add & delete randomly</td><td>19.06</td><td>52.46</td><td>1.94e-4</td></tr><tr><td>10,000 RBTree get</td><td>0.61</td><td>1647.37</td><td>6.11e-6</td></tr><tr><td>10,000 AVLTree add</td><td>32.03</td><td>31.22</td><td>7.32e-4</td></tr><tr><td>10,000 AVLTree get</td><td>19.65</td><td>50.89</td><td>3.12e-4</td></tr><tr><td>10,000 AVLTree add & delete randomly</td><td>62.07</td><td>16.11</td><td>4.26e-4</td></tr></table></div>
|
|
712
712
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
713
713
|
<div class='collapsible level0' ><span class='json-to-html-label'>directed-graph</span></div>
|
|
714
|
-
<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>
|
|
714
|
+
<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>9939.30</td><td>9.29e-7</td></tr><tr><td>1,000 addEdge</td><td>6.15</td><td>162.54</td><td>8.71e-4</td></tr><tr><td>1,000 getVertex</td><td>0.05</td><td>2.18e+4</td><td>2.83e-7</td></tr><tr><td>1,000 getEdge</td><td>23.93</td><td>41.78</td><td>0.00</td></tr><tr><td>tarjan</td><td>207.83</td><td>4.81</td><td>0.01</td></tr><tr><td>topologicalSort</td><td>181.91</td><td>5.50</td><td>0.00</td></tr></table></div>
|
|
715
715
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
716
716
|
<div class='collapsible level0' ><span class='json-to-html-label'>doubly-linked-list</span></div>
|
|
717
|
-
<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>
|
|
717
|
+
<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>210.21</td><td>4.76</td><td>0.03</td></tr><tr><td>1,000,000 unshift</td><td>218.63</td><td>4.57</td><td>0.05</td></tr><tr><td>1,000,000 unshift & shift</td><td>162.14</td><td>6.17</td><td>0.01</td></tr><tr><td>1,000,000 addBefore</td><td>319.75</td><td>3.13</td><td>0.06</td></tr></table></div>
|
|
718
718
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
719
719
|
<div class='collapsible level0' ><span class='json-to-html-label'>singly-linked-list</span></div>
|
|
720
|
-
<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 & shift</td><td>
|
|
720
|
+
<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 & shift</td><td>191.55</td><td>5.22</td><td>0.03</td></tr><tr><td>10,000 push & pop</td><td>215.95</td><td>4.63</td><td>0.01</td></tr><tr><td>10,000 addBefore</td><td>249.82</td><td>4.00</td><td>0.01</td></tr></table></div>
|
|
721
721
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
722
722
|
<div class='collapsible level0' ><span class='json-to-html-label'>priority-queue</span></div>
|
|
723
|
-
<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>27.
|
|
723
|
+
<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>27.54</td><td>36.31</td><td>2.55e-4</td></tr><tr><td>100,000 add & poll</td><td>75.88</td><td>13.18</td><td>4.27e-4</td></tr></table></div>
|
|
724
724
|
</div><div class="json-to-html-collapse clearfix 0">
|
|
725
725
|
<div class='collapsible level0' ><span class='json-to-html-label'>stack</span></div>
|
|
726
|
-
<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>39.
|
|
726
|
+
<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>39.78</td><td>25.14</td><td>0.01</td></tr><tr><td>1,000,000 push & pop</td><td>46.90</td><td>21.32</td><td>0.01</td></tr></table></div>
|
|
727
727
|
</div>
|
|
728
728
|
|
|
729
729
|
[//]: # (No deletion!!! End of Replace Section)
|
package/benchmark/report.html
CHANGED
|
@@ -42,8 +42,44 @@
|
|
|
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'>heap</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>100,000 add</td><td>6.36</td><td>157.24</td><td>1.88e-4</td></tr><tr><td>100,000 add & poll</td><td>32.56</td><td>30.72</td><td>0.01</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'>rb-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>100,000 add</td><td>55.46</td><td>18.03</td><td>0.00</td></tr><tr><td>100,000 get</td><td>114.63</td><td>8.72</td><td>0.00</td></tr><tr><td>100,000 iterator</td><td>26.52</td><td>37.71</td><td>0.01</td></tr><tr><td>100,000 add & delete orderly</td><td>128.13</td><td>7.80</td><td>0.02</td></tr><tr><td>100,000 add & delete randomly</td><td>228.89</td><td>4.37</td><td>0.00</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'>queue</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,000 push</td><td>43.53</td><td>22.97</td><td>0.01</td></tr><tr><td>100,000 push & shift</td><td>4.80</td><td>208.14</td><td>5.81e-4</td></tr><tr><td>Native JS Array 100,000 push & shift</td><td>2201.64</td><td>0.45</td><td>0.11</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'>deque</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>1,000,000 push</td><td>25.91</td><td>38.59</td><td>0.01</td></tr><tr><td>1,000,000 push & pop</td><td>30.71</td><td>32.57</td><td>0.00</td></tr><tr><td>1,000,000 push & shift</td><td>30.59</td><td>32.69</td><td>0.00</td></tr><tr><td>100,000 push & shift</td><td>3.23</td><td>309.94</td><td>2.61e-4</td></tr><tr><td>Native JS Array 100,000 push & shift</td><td>2525.12</td><td>0.40</td><td>0.39</td></tr><tr><td>100,000 unshift & shift</td><td>2.87</td><td>347.92</td><td>2.86e-4</td></tr><tr><td>Native JS Array 100,000 unshift & shift</td><td>4400.38</td><td>0.23</td><td>0.14</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'>hash-map</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>1,000,000 set</td><td>113.02</td><td>8.85</td><td>0.02</td></tr><tr><td>Native JS Map 1,000,000 set</td><td>201.23</td><td>4.97</td><td>0.00</td></tr><tr><td>Native JS Set 1,000,000 add</td><td>168.53</td><td>5.93</td><td>0.01</td></tr><tr><td>1,000,000 set & get</td><td>118.49</td><td>8.44</td><td>0.02</td></tr><tr><td>Native JS Map 1,000,000 set & get</td><td>263.49</td><td>3.80</td><td>0.01</td></tr><tr><td>Native JS Set 1,000,000 add & has</td><td>168.28</td><td>5.94</td><td>0.01</td></tr><tr><td>1,000,000 ObjKey set & get</td><td>309.88</td><td>3.23</td><td>0.01</td></tr><tr><td>Native JS Map 1,000,000 ObjKey set & get</td><td>282.50</td><td>3.54</td><td>0.04</td></tr><tr><td>Native JS Set 1,000,000 ObjKey add & has</td><td>268.42</td><td>3.73</td><td>0.03</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'>trie</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>100,000 push</td><td>44.85</td><td>22.30</td><td>0.01</td></tr><tr><td>100,000 getWords</td><td>84.84</td><td>11.79</td><td>0.01</td></tr></table></div>
|
|
62
|
+
</div><div class="json-to-html-collapse clearfix 0">
|
|
45
63
|
<div class='collapsible level0' ><span class='json-to-html-label'>avl-tree</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>100,000 add</td><td>
|
|
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>100,000 add</td><td>381.63</td><td>2.62</td><td>0.00</td></tr><tr><td>100,000 get</td><td>354.69</td><td>2.82</td><td>0.00</td></tr><tr><td>100,000 iterator</td><td>29.87</td><td>33.48</td><td>0.01</td></tr><tr><td>100,000 add & delete orderly</td><td>652.77</td><td>1.53</td><td>0.00</td></tr><tr><td>100,000 add & delete randomly</td><td>929.07</td><td>1.08</td><td>0.00</td></tr></table></div>
|
|
65
|
+
</div><div class="json-to-html-collapse clearfix 0">
|
|
66
|
+
<div class='collapsible level0' ><span class='json-to-html-label'>binary-tree-overall</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 RBTree add</td><td>5.55</td><td>180.05</td><td>7.09e-5</td></tr><tr><td>10,000 RBTree add & delete randomly</td><td>19.06</td><td>52.46</td><td>1.94e-4</td></tr><tr><td>10,000 RBTree get</td><td>0.61</td><td>1647.37</td><td>6.11e-6</td></tr><tr><td>10,000 AVLTree add</td><td>32.03</td><td>31.22</td><td>7.32e-4</td></tr><tr><td>10,000 AVLTree get</td><td>19.65</td><td>50.89</td><td>3.12e-4</td></tr><tr><td>10,000 AVLTree add & delete randomly</td><td>62.07</td><td>16.11</td><td>4.26e-4</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'>directed-graph</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 addVertex</td><td>0.10</td><td>9939.30</td><td>9.29e-7</td></tr><tr><td>1,000 addEdge</td><td>6.15</td><td>162.54</td><td>8.71e-4</td></tr><tr><td>1,000 getVertex</td><td>0.05</td><td>2.18e+4</td><td>2.83e-7</td></tr><tr><td>1,000 getEdge</td><td>23.93</td><td>41.78</td><td>0.00</td></tr><tr><td>tarjan</td><td>207.83</td><td>4.81</td><td>0.01</td></tr><tr><td>topologicalSort</td><td>181.91</td><td>5.50</td><td>0.00</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'>doubly-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>1,000,000 push</td><td>210.21</td><td>4.76</td><td>0.03</td></tr><tr><td>1,000,000 unshift</td><td>218.63</td><td>4.57</td><td>0.05</td></tr><tr><td>1,000,000 unshift & shift</td><td>162.14</td><td>6.17</td><td>0.01</td></tr><tr><td>1,000,000 addBefore</td><td>319.75</td><td>3.13</td><td>0.06</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'>singly-linked-list</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>1,000,000 push & shift</td><td>191.55</td><td>5.22</td><td>0.03</td></tr><tr><td>10,000 push & pop</td><td>215.95</td><td>4.63</td><td>0.01</td></tr><tr><td>10,000 addBefore</td><td>249.82</td><td>4.00</td><td>0.01</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</td><td>27.54</td><td>36.31</td><td>2.55e-4</td></tr><tr><td>100,000 add & poll</td><td>75.88</td><td>13.18</td><td>4.27e-4</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'>stack</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>39.78</td><td>25.14</td><td>0.01</td></tr><tr><td>1,000,000 push & pop</td><td>46.90</td><td>21.32</td><td>0.01</td></tr></table></div>
|
|
47
83
|
</div>
|
|
48
84
|
|
|
49
85
|
</div>
|
package/benchmark/report.json
CHANGED
|
@@ -1,37 +1,403 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"heap": {
|
|
3
|
+
"benchmarks": [
|
|
4
|
+
{
|
|
5
|
+
"test name": "100,000 add",
|
|
6
|
+
"time taken (ms)": "6.36",
|
|
7
|
+
"executions per sec": "157.24",
|
|
8
|
+
"sample deviation": "1.88e-4"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"test name": "100,000 add & poll",
|
|
12
|
+
"time taken (ms)": "32.56",
|
|
13
|
+
"executions per sec": "30.72",
|
|
14
|
+
"sample deviation": "0.01"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"testName": "heap"
|
|
18
|
+
},
|
|
19
|
+
"rb-tree": {
|
|
3
20
|
"benchmarks": [
|
|
4
21
|
{
|
|
5
22
|
"test name": "100,000 add",
|
|
6
|
-
"time taken (ms)": "
|
|
7
|
-
"executions per sec": "
|
|
23
|
+
"time taken (ms)": "55.46",
|
|
24
|
+
"executions per sec": "18.03",
|
|
8
25
|
"sample deviation": "0.00"
|
|
9
26
|
},
|
|
10
27
|
{
|
|
11
28
|
"test name": "100,000 get",
|
|
12
|
-
"time taken (ms)": "
|
|
13
|
-
"executions per sec": "
|
|
29
|
+
"time taken (ms)": "114.63",
|
|
30
|
+
"executions per sec": "8.72",
|
|
14
31
|
"sample deviation": "0.00"
|
|
15
32
|
},
|
|
16
33
|
{
|
|
17
34
|
"test name": "100,000 iterator",
|
|
18
|
-
"time taken (ms)": "
|
|
19
|
-
"executions per sec": "
|
|
35
|
+
"time taken (ms)": "26.52",
|
|
36
|
+
"executions per sec": "37.71",
|
|
37
|
+
"sample deviation": "0.01"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"test name": "100,000 add & delete orderly",
|
|
41
|
+
"time taken (ms)": "128.13",
|
|
42
|
+
"executions per sec": "7.80",
|
|
43
|
+
"sample deviation": "0.02"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"test name": "100,000 add & delete randomly",
|
|
47
|
+
"time taken (ms)": "228.89",
|
|
48
|
+
"executions per sec": "4.37",
|
|
20
49
|
"sample deviation": "0.00"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"testName": "rb-tree"
|
|
53
|
+
},
|
|
54
|
+
"queue": {
|
|
55
|
+
"benchmarks": [
|
|
56
|
+
{
|
|
57
|
+
"test name": "1,000,000 push",
|
|
58
|
+
"time taken (ms)": "43.53",
|
|
59
|
+
"executions per sec": "22.97",
|
|
60
|
+
"sample deviation": "0.01"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"test name": "100,000 push & shift",
|
|
64
|
+
"time taken (ms)": "4.80",
|
|
65
|
+
"executions per sec": "208.14",
|
|
66
|
+
"sample deviation": "5.81e-4"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"test name": "Native JS Array 100,000 push & shift",
|
|
70
|
+
"time taken (ms)": "2201.64",
|
|
71
|
+
"executions per sec": "0.45",
|
|
72
|
+
"sample deviation": "0.11"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"testName": "queue"
|
|
76
|
+
},
|
|
77
|
+
"deque": {
|
|
78
|
+
"benchmarks": [
|
|
79
|
+
{
|
|
80
|
+
"test name": "1,000,000 push",
|
|
81
|
+
"time taken (ms)": "25.91",
|
|
82
|
+
"executions per sec": "38.59",
|
|
83
|
+
"sample deviation": "0.01"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"test name": "1,000,000 push & pop",
|
|
87
|
+
"time taken (ms)": "30.71",
|
|
88
|
+
"executions per sec": "32.57",
|
|
89
|
+
"sample deviation": "0.00"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"test name": "1,000,000 push & shift",
|
|
93
|
+
"time taken (ms)": "30.59",
|
|
94
|
+
"executions per sec": "32.69",
|
|
95
|
+
"sample deviation": "0.00"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"test name": "100,000 push & shift",
|
|
99
|
+
"time taken (ms)": "3.23",
|
|
100
|
+
"executions per sec": "309.94",
|
|
101
|
+
"sample deviation": "2.61e-4"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"test name": "Native JS Array 100,000 push & shift",
|
|
105
|
+
"time taken (ms)": "2525.12",
|
|
106
|
+
"executions per sec": "0.40",
|
|
107
|
+
"sample deviation": "0.39"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"test name": "100,000 unshift & shift",
|
|
111
|
+
"time taken (ms)": "2.87",
|
|
112
|
+
"executions per sec": "347.92",
|
|
113
|
+
"sample deviation": "2.86e-4"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"test name": "Native JS Array 100,000 unshift & shift",
|
|
117
|
+
"time taken (ms)": "4400.38",
|
|
118
|
+
"executions per sec": "0.23",
|
|
119
|
+
"sample deviation": "0.14"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"testName": "deque"
|
|
123
|
+
},
|
|
124
|
+
"hash-map": {
|
|
125
|
+
"benchmarks": [
|
|
126
|
+
{
|
|
127
|
+
"test name": "1,000,000 set",
|
|
128
|
+
"time taken (ms)": "113.02",
|
|
129
|
+
"executions per sec": "8.85",
|
|
130
|
+
"sample deviation": "0.02"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"test name": "Native JS Map 1,000,000 set",
|
|
134
|
+
"time taken (ms)": "201.23",
|
|
135
|
+
"executions per sec": "4.97",
|
|
136
|
+
"sample deviation": "0.00"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"test name": "Native JS Set 1,000,000 add",
|
|
140
|
+
"time taken (ms)": "168.53",
|
|
141
|
+
"executions per sec": "5.93",
|
|
142
|
+
"sample deviation": "0.01"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"test name": "1,000,000 set & get",
|
|
146
|
+
"time taken (ms)": "118.49",
|
|
147
|
+
"executions per sec": "8.44",
|
|
148
|
+
"sample deviation": "0.02"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"test name": "Native JS Map 1,000,000 set & get",
|
|
152
|
+
"time taken (ms)": "263.49",
|
|
153
|
+
"executions per sec": "3.80",
|
|
154
|
+
"sample deviation": "0.01"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"test name": "Native JS Set 1,000,000 add & has",
|
|
158
|
+
"time taken (ms)": "168.28",
|
|
159
|
+
"executions per sec": "5.94",
|
|
160
|
+
"sample deviation": "0.01"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"test name": "1,000,000 ObjKey set & get",
|
|
164
|
+
"time taken (ms)": "309.88",
|
|
165
|
+
"executions per sec": "3.23",
|
|
166
|
+
"sample deviation": "0.01"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"test name": "Native JS Map 1,000,000 ObjKey set & get",
|
|
170
|
+
"time taken (ms)": "282.50",
|
|
171
|
+
"executions per sec": "3.54",
|
|
172
|
+
"sample deviation": "0.04"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"test name": "Native JS Set 1,000,000 ObjKey add & has",
|
|
176
|
+
"time taken (ms)": "268.42",
|
|
177
|
+
"executions per sec": "3.73",
|
|
178
|
+
"sample deviation": "0.03"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"testName": "hash-map"
|
|
182
|
+
},
|
|
183
|
+
"trie": {
|
|
184
|
+
"benchmarks": [
|
|
185
|
+
{
|
|
186
|
+
"test name": "100,000 push",
|
|
187
|
+
"time taken (ms)": "44.85",
|
|
188
|
+
"executions per sec": "22.30",
|
|
189
|
+
"sample deviation": "0.01"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"test name": "100,000 getWords",
|
|
193
|
+
"time taken (ms)": "84.84",
|
|
194
|
+
"executions per sec": "11.79",
|
|
195
|
+
"sample deviation": "0.01"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"testName": "trie"
|
|
199
|
+
},
|
|
200
|
+
"avl-tree": {
|
|
201
|
+
"benchmarks": [
|
|
202
|
+
{
|
|
203
|
+
"test name": "100,000 add",
|
|
204
|
+
"time taken (ms)": "381.63",
|
|
205
|
+
"executions per sec": "2.62",
|
|
206
|
+
"sample deviation": "0.00"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"test name": "100,000 get",
|
|
210
|
+
"time taken (ms)": "354.69",
|
|
211
|
+
"executions per sec": "2.82",
|
|
212
|
+
"sample deviation": "0.00"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"test name": "100,000 iterator",
|
|
216
|
+
"time taken (ms)": "29.87",
|
|
217
|
+
"executions per sec": "33.48",
|
|
218
|
+
"sample deviation": "0.01"
|
|
21
219
|
},
|
|
22
220
|
{
|
|
23
221
|
"test name": "100,000 add & delete orderly",
|
|
24
|
-
"time taken (ms)": "
|
|
25
|
-
"executions per sec": "1.
|
|
222
|
+
"time taken (ms)": "652.77",
|
|
223
|
+
"executions per sec": "1.53",
|
|
26
224
|
"sample deviation": "0.00"
|
|
27
225
|
},
|
|
28
226
|
{
|
|
29
227
|
"test name": "100,000 add & delete randomly",
|
|
30
|
-
"time taken (ms)": "
|
|
31
|
-
"executions per sec": "
|
|
32
|
-
"sample deviation": "0.
|
|
228
|
+
"time taken (ms)": "929.07",
|
|
229
|
+
"executions per sec": "1.08",
|
|
230
|
+
"sample deviation": "0.00"
|
|
33
231
|
}
|
|
34
232
|
],
|
|
35
233
|
"testName": "avl-tree"
|
|
234
|
+
},
|
|
235
|
+
"binary-tree-overall": {
|
|
236
|
+
"benchmarks": [
|
|
237
|
+
{
|
|
238
|
+
"test name": "10,000 RBTree add",
|
|
239
|
+
"time taken (ms)": "5.55",
|
|
240
|
+
"executions per sec": "180.05",
|
|
241
|
+
"sample deviation": "7.09e-5"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"test name": "10,000 RBTree add & delete randomly",
|
|
245
|
+
"time taken (ms)": "19.06",
|
|
246
|
+
"executions per sec": "52.46",
|
|
247
|
+
"sample deviation": "1.94e-4"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"test name": "10,000 RBTree get",
|
|
251
|
+
"time taken (ms)": "0.61",
|
|
252
|
+
"executions per sec": "1647.37",
|
|
253
|
+
"sample deviation": "6.11e-6"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"test name": "10,000 AVLTree add",
|
|
257
|
+
"time taken (ms)": "32.03",
|
|
258
|
+
"executions per sec": "31.22",
|
|
259
|
+
"sample deviation": "7.32e-4"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"test name": "10,000 AVLTree get",
|
|
263
|
+
"time taken (ms)": "19.65",
|
|
264
|
+
"executions per sec": "50.89",
|
|
265
|
+
"sample deviation": "3.12e-4"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"test name": "10,000 AVLTree add & delete randomly",
|
|
269
|
+
"time taken (ms)": "62.07",
|
|
270
|
+
"executions per sec": "16.11",
|
|
271
|
+
"sample deviation": "4.26e-4"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"testName": "binary-tree-overall"
|
|
275
|
+
},
|
|
276
|
+
"directed-graph": {
|
|
277
|
+
"benchmarks": [
|
|
278
|
+
{
|
|
279
|
+
"test name": "1,000 addVertex",
|
|
280
|
+
"time taken (ms)": "0.10",
|
|
281
|
+
"executions per sec": "9939.30",
|
|
282
|
+
"sample deviation": "9.29e-7"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"test name": "1,000 addEdge",
|
|
286
|
+
"time taken (ms)": "6.15",
|
|
287
|
+
"executions per sec": "162.54",
|
|
288
|
+
"sample deviation": "8.71e-4"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"test name": "1,000 getVertex",
|
|
292
|
+
"time taken (ms)": "0.05",
|
|
293
|
+
"executions per sec": "2.18e+4",
|
|
294
|
+
"sample deviation": "2.83e-7"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"test name": "1,000 getEdge",
|
|
298
|
+
"time taken (ms)": "23.93",
|
|
299
|
+
"executions per sec": "41.78",
|
|
300
|
+
"sample deviation": "0.00"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"test name": "tarjan",
|
|
304
|
+
"time taken (ms)": "207.83",
|
|
305
|
+
"executions per sec": "4.81",
|
|
306
|
+
"sample deviation": "0.01"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"test name": "topologicalSort",
|
|
310
|
+
"time taken (ms)": "181.91",
|
|
311
|
+
"executions per sec": "5.50",
|
|
312
|
+
"sample deviation": "0.00"
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"testName": "directed-graph"
|
|
316
|
+
},
|
|
317
|
+
"doubly-linked-list": {
|
|
318
|
+
"benchmarks": [
|
|
319
|
+
{
|
|
320
|
+
"test name": "1,000,000 push",
|
|
321
|
+
"time taken (ms)": "210.21",
|
|
322
|
+
"executions per sec": "4.76",
|
|
323
|
+
"sample deviation": "0.03"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"test name": "1,000,000 unshift",
|
|
327
|
+
"time taken (ms)": "218.63",
|
|
328
|
+
"executions per sec": "4.57",
|
|
329
|
+
"sample deviation": "0.05"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"test name": "1,000,000 unshift & shift",
|
|
333
|
+
"time taken (ms)": "162.14",
|
|
334
|
+
"executions per sec": "6.17",
|
|
335
|
+
"sample deviation": "0.01"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"test name": "1,000,000 addBefore",
|
|
339
|
+
"time taken (ms)": "319.75",
|
|
340
|
+
"executions per sec": "3.13",
|
|
341
|
+
"sample deviation": "0.06"
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"testName": "doubly-linked-list"
|
|
345
|
+
},
|
|
346
|
+
"singly-linked-list": {
|
|
347
|
+
"benchmarks": [
|
|
348
|
+
{
|
|
349
|
+
"test name": "1,000,000 push & shift",
|
|
350
|
+
"time taken (ms)": "191.55",
|
|
351
|
+
"executions per sec": "5.22",
|
|
352
|
+
"sample deviation": "0.03"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"test name": "10,000 push & pop",
|
|
356
|
+
"time taken (ms)": "215.95",
|
|
357
|
+
"executions per sec": "4.63",
|
|
358
|
+
"sample deviation": "0.01"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"test name": "10,000 addBefore",
|
|
362
|
+
"time taken (ms)": "249.82",
|
|
363
|
+
"executions per sec": "4.00",
|
|
364
|
+
"sample deviation": "0.01"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"testName": "singly-linked-list"
|
|
368
|
+
},
|
|
369
|
+
"priority-queue": {
|
|
370
|
+
"benchmarks": [
|
|
371
|
+
{
|
|
372
|
+
"test name": "100,000 add",
|
|
373
|
+
"time taken (ms)": "27.54",
|
|
374
|
+
"executions per sec": "36.31",
|
|
375
|
+
"sample deviation": "2.55e-4"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"test name": "100,000 add & poll",
|
|
379
|
+
"time taken (ms)": "75.88",
|
|
380
|
+
"executions per sec": "13.18",
|
|
381
|
+
"sample deviation": "4.27e-4"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"testName": "priority-queue"
|
|
385
|
+
},
|
|
386
|
+
"stack": {
|
|
387
|
+
"benchmarks": [
|
|
388
|
+
{
|
|
389
|
+
"test name": "1,000,000 push",
|
|
390
|
+
"time taken (ms)": "39.78",
|
|
391
|
+
"executions per sec": "25.14",
|
|
392
|
+
"sample deviation": "0.01"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"test name": "1,000,000 push & pop",
|
|
396
|
+
"time taken (ms)": "46.90",
|
|
397
|
+
"executions per sec": "21.32",
|
|
398
|
+
"sample deviation": "0.01"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"testName": "stack"
|
|
36
402
|
}
|
|
37
403
|
}
|
|
@@ -194,7 +194,7 @@ class AVLTreeMultiMap extends avl_tree_1.AVLTree {
|
|
|
194
194
|
* decremented by 1 and
|
|
195
195
|
* @returns an array of `BinaryTreeDeleteResult<NODE>`.
|
|
196
196
|
*/
|
|
197
|
-
delete(identifier, callback = this.
|
|
197
|
+
delete(identifier, callback = this._DEFAULT_CALLBACK, ignoreCount = false) {
|
|
198
198
|
var _a;
|
|
199
199
|
const deletedResult = [];
|
|
200
200
|
if (!this.root)
|