Skip to content

Commit

Permalink
reverse is somewhat fairer
Browse files Browse the repository at this point in the history
  • Loading branch information
fumieval committed Dec 21, 2018
1 parent 09f7014 commit 414443e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/benchmark.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ main = do
let ef = unsafeFromVector td
defaultMain
[ bench "encode/elias-fano" $ whnf unsafeFromVector td
, bench "encode/vector" $ whnf V.sum td
, bench "reverse/vector" $ whnf V.reverse td
, bench "access/elias-fano" $ nf (map (ef!)) [0..V.length td - 1]
, bench "access/vector" $ nf (map (td V.!)) [0..V.length td - 1]
]

0 comments on commit 414443e

Please sign in to comment.