Benchmarks of some haskell's (and some others) hashtable implementations.
It containes benchmarks of:
- containers (Data.Map.Strict)
- unordered-containers (Data.HashMap.Strict)
- base (Data.HashTable, Deprecated)
- hashtables (Data.Hashtable.IO.*)
- hashmap (Data.HashMap)
- Judy (Data.Judy)
- binding to C library libjudy
- C++ std::map and std::unordered_map
$ cabal update
$ cabal install --only-dependencies --enable-benchmark --ghc-options='-O3 -fllvm' -fsse41
$ cabal configure --enable-benchmark
$ cabal build --ghc-options='-rtsopts -O3 -fllvm'
$ cabal bench --benchmark-options='+RTS -K16m -RTS -oresult.html'
It generates the graphical report result.html
.