You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the situation is reversed: I expected poor performance with MergeAll.applyMerge, but benchmarks show poor performance.
box shape: applyMerge max [1..] [1..]
10
DoublyLinkedList: OK (0.21s)
1.40 μs ± 84 ns
IntMap: OK (0.17s)
1.15 μs ± 91 ns
IntSet: OK (0.31s)
1.08 μs ± 48 ns
MergeAll: OK (0.25s)
883 ns ± 61 ns
MergeAll (flipped): OK (0.14s)
943 ns ± 83 ns
100
DoublyLinkedList: OK (0.27s)
15.2 μs ± 921 ns
IntMap: OK (0.24s)
13.2 μs ± 1.0 μs
IntSet: OK (0.21s)
11.3 μs ± 678 ns
MergeAll: OK (0.21s)
11.2 μs ± 659 ns
MergeAll (flipped): OK (0.21s)
11.3 μs ± 769 ns
1000
DoublyLinkedList: OK (0.16s)
136 μs ± 11 μs
IntMap: OK (0.15s)
131 μs ± 11 μs
IntSet: OK (0.25s)
107 μs ± 5.4 μs
MergeAll: OK (0.18s)
156 μs ± 12 μs
MergeAll (flipped): OK (0.18s)
159 μs ± 12 μs
10000
DoublyLinkedList: OK (0.19s)
1.36 ms ± 135 μs
IntMap: OK (0.18s)
1.31 ms ± 97 μs
IntSet: OK (0.16s)
1.20 ms ± 88 μs
MergeAll: OK (0.25s)
1.93 ms ± 185 μs
MergeAll (flipped): OK (0.26s)
1.94 ms ± 185 μs
100000
DoublyLinkedList: OK (0.21s)
13.4 ms ± 1.0 ms
IntMap: OK (0.21s)
12.9 ms ± 707 μs
IntSet: OK (0.20s)
12.7 ms ± 959 μs
MergeAll: OK (0.21s)
28.6 ms ± 2.0 ms
MergeAll (flipped): OK (0.46s)
28.7 ms ± 730 μs
1000000
DoublyLinkedList: OK (0.42s)
134 ms ± 3.8 ms
IntMap: OK (0.41s)
128 ms ± 5.8 ms
IntSet: OK (0.42s)
128 ms ± 2.7 ms
MergeAll: OK (1.05s)
327 ms ± 8.3 ms
MergeAll (flipped): OK (1.06s)
327 ms ± 6.6 ms
The text was updated successfully, but these errors were encountered:
applyMerge min [1..] [1..]
has the following shape:which I thought should result in poor performance with
MergeAll.applyMerge
, but benchmarks show that the performance is pretty good:On the other hand,
applyMerge max [1..] [1..]
has the following shape:Here the situation is reversed: I expected poor performance with
MergeAll.applyMerge
, but benchmarks show poor performance.The text was updated successfully, but these errors were encountered: