Skip to content

Commit

Permalink
Benchmarks: improve inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Apr 27, 2024
1 parent 2929fc6 commit ec2a660
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/RadixTreeBench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ main = do
[ bench "Old" $ nf
(foldl' (\acc k -> acc + fromMaybe 0 (Old.lookup k oldRadixTree)) 0) keys
, bench "New" $ nf
(foldl' (\acc k -> acc + New.find 0 k newRadixTree) 0) (map New.feedShortByteString keys)
(foldl' (\acc k -> acc + New.find 0 (New.feedShortByteString k) newRadixTree) 0)
keys
]

0 comments on commit ec2a660

Please sign in to comment.