📊 Performance Benchmark Report

Generated: 2/22/2026, 1:43:07 PM
data-structure-typed Tests
17
C++ Tests
12
Total Tests
29
tree-map
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M set TreeMap1584.241544.631740.12±5.08%
1M set TreeMap (Node)1163.471140.211187.8±1.2%
1M set RBT1876.11638.012894.16±27.93%
1M set RBT (Node)1341.041212.842075.29±22.33%
1M set js-sdsl955.32812.961656.95±30.06%
1M get TreeMap162.76159.63169.33±0.76%
1M get TreeMap (Node)1007.271004.61009.58±0.17%
1M get RBT159.61139.31169.48±2.2%
1M get RBT (Node)1059.561054.121067.31±0.41%
1M get js-sdsl814.55807.37832.64±0.81%
1M build+get TreeMap1936.031792.062519.08±15.73%
1M build+get TreeMap (Node)2351.422042.673044.57±20.62%
1M build+get RBT2009.461781.23079.96±27.4%
1M build+get RBT (Node)2191.412154.052228.17±1.37%
1M build+get js-sdsl1767.131506.482657.98±26.33%
100K rangeSearch TreeMap114.3572.07917.58±50.59%
100K rangeSearch TreeMap (Node)82.8580.41102.84±1.59%
100K navigable TreeMap168.61164.97175.78±0.75%
100K navigable TreeMap (Node)245.61243.13248.82±0.4%
100K build+rangeSearch TreeMap1800.181586.052490.56±19.93%
100K build+rangeSearch TreeMap (Node)1364.81198.692119.02±28.44%
100K build+navigable TreeMap1733.871721.111753.36±0.69%
100K build+navigable TreeMap (Node)1423.191390.541517.41±3.56%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M set std::map512486.4537.6±2.50%
1M get std::map322305.9338.1±2.50%
1M build+get std::map819778.05859.95±2.50%
tree-set
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M add TreeSet1817.811533.152706.38±25.9%
1M add TreeSet (Node)1476.131148.93279.63±49.85%
1M add RBT1956.771612.713418.44±38.5%
1M add RBT (Node)1454.841195.12613.68±41.02%
1M add js-sdsl1139.28809.722722.45±71.46%
1M has TreeSet89.7586.5699.35±0.95%
1M has TreeSet (Node)929.28927.12933.02±0.2%
1M has RBT91.7483.2100.99±2.08%
1M has RBT (Node)1095.731051.171164.12±3.93%
1M has js-sdsl849.02838.57875.56±1.42%
1M build+has TreeSet2096.951624.923921.13±60.38%
1M build+has TreeSet (Node)2072.152019.662115.15±1.84%
1M build+has RBT2172.551674.074259.19±49.52%
1M build+has RBT (Node)2187.872163.012203.74±0.79%
1M build+has js-sdsl1610.391574.071647.04±1.94%
100K rangeSearch TreeSet37.3735.1940.18±0.86%
100K rangeSearch TreeSet (Node)36.8835.5942.99±1.02%
100K navigable TreeSet153.24150.21158.68±0.72%
100K navigable TreeSet (Node)151.69149.84154.73±0.5%
100K build+rangeSearch TreeSet19211594.353251.16±35.83%
100K build+rangeSearch TreeSet (Node)1451.291157.23130.5±47.2%
100K build+navigable TreeSet1717.881690.851738.33±0.98%
100K build+navigable TreeSet (Node)1323.31278.11426.23±4.21%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M add std::set462438.9485.1±2.50%
1M has std::set444421.8466.2±2.50%
1M build+has std::set837795.15878.85±2.50%
tree-multi-map
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M add (TreeMultiMap bucketed)539.87427.651430.72±41.48%
1M has-only (TreeMultiMap)37.1736.2439.34±0.49%
1M get-only (TreeMultiMap)148.7141.89162.51±2%
1M count-only (TreeMultiMap)231.71225.61260.61±2.03%
1M build+has (TreeMultiMap)605.14471.311600.47±47.42%
1M build+get (TreeMultiMap)580.53567.4591.19±1.03%
100K hasEntry (TreeMultiMap Object.is)478.71461.88499.68±1.95%
100K deleteValue (TreeMultiMap Object.is)492.5483.65503.79±0.97%
100K firstEntry/lastEntry (TreeMultiMap)0nullnull±0%
100K ceilingEntry/floorEntry (TreeMultiMap)0nullnull±0%
1M bucket iteration (TreeMultiMap)28.3727.1629.86±0.63%
1M flatEntries iteration (TreeMultiMap)135.69129.69141.56±0.86%
1M size property (TreeMultiMap)000±3.13%
1M totalSize property (TreeMultiMap)28.5926.3291.83±7.13%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M add std::multimap731694.45767.55±2.50%
1M has std::multimap833791.35874.65±2.50%
1M get std::multimap15531475.351630.65±2.50%
1M count std::multimap15481470.61625.4±2.50%
1M build+has std::multimap15191443.051594.95±2.50%
1M build+get std::multimap22632149.852376.15±2.50%
1M iterate std::multimap109103.55114.45±2.50%
tree-multi-set
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M add (TreeMultiSet expanded iteration)318.73225.991280.19±54.8%
1M has-only (TreeMultiSet)144.4139.38161.55±1.57%
1M count-only (TreeMultiSet)146.14137.88170.81±2.71%
1M build+has (TreeMultiSet)390.86370.84421.49±2.87%
1M build+count (TreeMultiSet)382.27371.02416.14±2.16%
100K delete-one (TreeMultiSet)249.65240.62257.99±1.48%
100K setCount (TreeMultiSet)291.95238.1666.41±21.59%
1M expanded iteration (TreeMultiSet)61.0958.7265.95±0.71%
1M entries view (TreeMultiSet)20.3519.521.21±0.4%
1M size property (TreeMultiSet)000±3.15%
1M distinctSize property (TreeMultiSet)000±3.5%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M add std::multiset752714.4789.6±2.50%
1M has std::multiset756718.2793.8±2.50%
1M count std::multiset13321265.41398.6±2.50%
1M build+has std::multiset14061335.71476.3±2.50%
1M build+count std::multiset19091813.552004.45±2.50%
doubly-linked-list
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100k push8.05585.614454.1937±17.51%
Native JS Array 100k push2.07061.96562.7555±1.17%
100k unshift6.76115.45727.4359±1.44%
Native JS Array 100k unshift1058.07955.321101.74±4.1%
100k unshift & shift4.52454.1294.8488±0.47%
Native JS Array 100k unshift & shift2296.492126.412452.19±4.74%
100k addAt(mid)1645.021331.612329.62±26.54%
100k addBefore (cursor)6.48235.797815.2295±5.35%
100k push (js-sdsl)1.93281.07424.3993±10.84%
100k unshift (js-sdsl)1.82991.20224.2293±10.85%
100k unshift & shift (js-sdsl)2.21361.85824.9582±3.15%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100k push5.425.155.69±2.50%
100k unshift5.445.175.71±2.50%
100k unshift & shift5.435.165.71±2.50%
100k addAt(mid)705.4670.13740.67±2.50%
100k addBefore (cursor)6.145.836.44±2.50%
singly-linked-list
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100K unshift & shift5.243.37316.9825±6.31%
Native JS Array 100K unshift & shift4029.883712.554655.34±11.17%
10K unshift & shift0.63490.44990.7052±2.5%
Native JS Array 10K unshift & shift13.239.5326.5±4.1%
10K addAt(mid)18.119.3724.22±4.8%
10K addBefore (cursor)30.1117.5344.66±7.08%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100K unshift & shift10.19.5910.61±2.50%
10K unshift & shift10.951.05±2.50%
10K addAt(mid)12.712.0613.33±2.50%
10K addBefore (cursor)1.131.071.19±2.50%
hash-map
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M set185.57123.72354.4±14.94%
1M set (js-sdsl)158.4984.11643.16±34.11%
Native JS Map 1M set219.67197.77240.33±3.21%
Native JS Set 1M add185.65169.65240.4±4.2%
1M add HashSet (js-sdsl)140.8862.8588.51±36.45%
1M set & get247.06195.24280.69±6.84%
1M set & get (js-sdsl)112.7969.67301.96±15.09%
Native JS Map 1M set & get287.39228.97475.96±13.36%
Native JS Set 1M add & has237.7166.74311.9±9.59%
1M add & has HashSet (js-sdsl)174.95112.76388.21±18.55%
1M ObjKey set & get379.65341.94490.79±8.68%
1M ObjKey set & get (js-sdsl)698.13531.76848.55±14.32%
Native JS Map 1M ObjKey set & get299.71201.71437.48±14.71%
Native JS Set 1M ObjKey add & has291.61247.73432.74±12.92%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M set70.2266.7173.73±2.50%
std::map 1M set162.57154.44170.69±2.50%
std::unordered_set 1M add70.1866.6873.69±2.50%
1M set & get73.0469.3976.69±2.50%
std::map 1M set & get208.33197.91218.75±2.50%
std::unordered_set 1M add & has73.2469.5876.9±2.50%
1M ObjKey set & get92.5587.9297.18±2.50%
std::map 1M ObjKey set & get213.55202.87224.23±2.50%
std::unordered_set 1M ObjKey add & has79.0375.0882.99±2.50%
deque
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M push10.827.5716.63±5.46%
Native JS Array 1M push29.724.3560.97±7.53%
1M push & pop16.9211.8927.13±7.55%
Native JS Array 1M push & pop54.4347.4394.99±4.96%
1M push & shift33.7428.5855.22±3.46%
100K push & shift2.44811.65763.0384±2.16%
Native JS Array 100K push & shift2007.911286.92332.76±19.94%
100K unshift & shift2.43911.62614.5413±3.37%
Native JS Array 100K unshift & shift4067.393872.364229.01±4.9%
1M push (js-sdsl)17.5912.9533.05±5.03%
1M push & pop (js-sdsl)27.9221.5447.11±7.02%
100K push & shift (js-sdsl)2.52241.28953.798±4.3%
100K unshift & shift (js-sdsl)2.50911.20693.042±2.2%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M push1.761.671.85±2.50%
1M push & pop2.22.092.31±2.50%
1M push & shift1.941.842.04±2.50%
100K push & shift0.190.180.2±2.50%
Native vector 100K push & shift347.72330.34365.11±2.50%
100K unshift & shift0.190.180.2±2.50%
Native vector 100K unshift & shift705.12669.86740.37±2.50%
stack
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M push26.3524.7333.75±2.09%
1M push (js-sdsl)30.5723.52129.34±15.72%
Native JS Array 1M push26.7221.7882.43±10.1%
1M push & pop29.4625.81102.67±8.59%
1M push & pop (js-sdsl)30.927.9744.02±2.99%
Native JS Array 1M push & pop30.6125.71140.45±12.42%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M push1.651.571.73±2.50%
1M push & pop2.622.492.75±2.50%
red-black-tree
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M get100.6885.62112.14±16.94%
1M get (Node Mode)254.42251.82256.88±0.92%
1M get (js-sdsl)138.51134.92141.18±2.55%
200K rangeSearch SEQ1279.471235.271366.88±5.59%
200K rangeSearch RAND1969.151885.882168.54±7.23%
1M upd SEQ79.0671.195.84±15.75%
1M upd SEQ (Node Mode)225.95215.98234.72±4.24%
1M upd SEQ (js-sdsl)171.15108.35189.92±25.55%
1M upd RAND113.1106.36118.28±5.08%
1M upd RAND (Node Mode)393.78390.08401.15±1.39%
1M upd RAND (js-sdsl)302.59299.86303.59±0.64%
1M ins SEQ567.61463.22946.06±46.30%
1M ins SEQ (Node Mode)196.91194.62200.44±1.46%
1M ins SEQ (js-sdsl)89.186.7590.48±1.95%
1M ins RAND1611.631585.891631.64±1.37%
1M ins RAND (Node Mode)1169.561164.611175.82±0.46%
1M ins RAND (js-sdsl)825.66794.56843.73±3.45%
1M keys-only4.00472.7115.4122±37.29%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M upd SEQ68.4365.0171.85±2.50%
1M upd SEQ (Node Mode)59.8756.8862.86±2.50%
1M upd RAND158.14150.23166.05±2.50%
1M upd RAND (Node Mode)158.48150.56166.41±2.50%
1M ins SEQ162.72154.58170.86±2.50%
1M ins SEQ (Node Mode)219.89208.89230.88±2.50%
1M ins RAND483.56459.38507.74±2.50%
1M ins RAND (Node Mode)392.74373.11412.38±2.50%
1M keys-only0.090.080.09±2.50%
1M get52.9750.3255.62±2.50%
1M get (Node Mode)55.6852.958.46±2.50%
Red-Black Tree 1M rangeSearch queries181.5172.43190.58±2.50%
avl-tree
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100K add randomly147.71139.72165.99±1.82%
100K add120.95116.96137.67±1.33%
100K get4.61444.19465.3585±1.46%
100K getNode29.3128.3231.6±0.64%
100K iterator6.56255.99738.4057±1.68%
100K add & delete orderly181.9178.51189.75±0.85%
100K add & delete randomly224.47215.79246.42±1.71%
AVL Tree 100K rangeSearch queries1388.541359.911417.61±2.01%
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100K add randomly16.6215.7917.45±2.50%
100K add15.4814.7116.26±2.50%
100K get7.216.857.57±2.50%
100K getNode8.518.088.93±2.50%
100K iterator1.0611.11±2.50%
100K add & delete orderly21.5620.4822.64±2.50%
100K add & delete randomly27.9626.5629.35±2.50%
AVL Tree 100K rangeSearch queries111.9106.31117.5±2.50%
bst
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
10K add randomly5.80645.348415.4658±4.27%
10K add & delete randomly10.219.9212.41±0.88%
10K addMany10.9810.2523.9±3.17%
10K get11.9110.9915.31±2.1%
trie
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100K add24.7822.0835.79±3.49%
100K getWords117.7599.64202.76±9.14%
directed-graph
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1K addVertex0.04460.04360.0557±0.63%
1K addEdge2.94262.78184.3713±1.7%
1K getVertex0.03820.03740.0441±0.51%
1K getEdge48.5343.18107.27±6.34%
tarjan263.6253.45298.73±2.51%
topologicalSort221.51213.7246.27±2.5%
binary-tree
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1K add randomly10.6510.4211.19±0.32%
1K add & delete randomly11.2310.4926.02±4.51%
1K addMany10.5810.2911.22±0.35%
1K get11.1110.3222.68±3.53%
1K has1110.323.76±4.21%
1K dfs141.08139.05144.34±0.46%
1K bfs47.8346.6955.65±0.98%
1K morris55.8254.6259.95±0.44%
priority-queue
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
100K add4.3664.27755.0309±0.55%
100K add (js-sdsl)5.65195.47587.143±0.78%
100K add & poll26.1325.5426.9±0.4%
100K add & poll (js-sdsl)26.8926.4327.84±0.42%
queue
data-structure-typed
Test CaseAvg (ms)Min (ms)Max (ms)Stability
1M push28.9124.973.74±6.24%
100K push & shift3.07982.656317.8644±11.62%
Native JS Array 1M push26.3123.2948.57±4.82%
Native JS Array 100K push & shift1403.591089.632431.97±39.71%
1M push (js-sdsl)54.1331.96128.99±8.88%
100K push & shift (js-sdsl)2.56422.41962.8011±0.77%
avl-rb-range-search
C++
Test CaseAvg (ms)Min (ms)Max (ms)Stability
Red-Black Tree 1M rangeSearch000±2.50%
AVL Tree 100K add20.7319.721.77±2.50%
Red-Black Tree 1M add420.68399.65441.71±2.50%