Skip to content

Commit

Permalink
Benchmarks: use 10x longer common prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Apr 27, 2024
1 parent ec2a660 commit cb46b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/RadixTreeBench.hs
Expand Up @@ -20,7 +20,7 @@ main :: IO ()
main = do
contents <- BS.readFile "du-ghc.txt"
let assocs :: [(BSS.ShortByteString, Int)]
assocs = map ((\[size, name] -> (BSS.toShort name, read (BS.unpack size))) . BS.split '\t') $ BS.lines contents
assocs = map ((\[size, name] -> (BSS.toShort $ BS.concatMap (BS.replicate 10) name, read (BS.unpack size))) . BS.split '\t') $ BS.lines contents

keys = map fst assocs

Expand Down

0 comments on commit cb46b05

Please sign in to comment.