diff --git a/containers-tests/benchmarks/IntMap.hs b/containers-tests/benchmarks/IntMap.hs index b41bd6e75..2ac463acd 100644 --- a/containers-tests/benchmarks/IntMap.hs +++ b/containers-tests/benchmarks/IntMap.hs @@ -53,6 +53,7 @@ main = do , bench "split" $ whnf (M.split key_mid) m , bench "splitLookup" $ whnf (M.splitLookup key_mid) m , bench "eq" $ whnf (\m' -> m' == m') m -- worst case, compares everything + , bench "compare" $ whnf (\m' -> compare m' m') m -- worst case, compares everything , bgroup "folds" $ foldBenchmarks M.foldr M.foldl M.foldr' M.foldl' foldMap m , bgroup "folds with key" $ foldWithKeyBenchmarks M.foldrWithKey M.foldlWithKey M.foldrWithKey' M.foldlWithKey' M.foldMapWithKey m diff --git a/containers-tests/benchmarks/IntSet.hs b/containers-tests/benchmarks/IntSet.hs index 0e9a95d9c..d47680c01 100644 --- a/containers-tests/benchmarks/IntSet.hs +++ b/containers-tests/benchmarks/IntSet.hs @@ -58,6 +58,8 @@ main = do , bench "splitMember:dense" $ whnf (IS.splitMember elem_mid) s , bench "splitMember:sparse" $ whnf (IS.splitMember elem_sparse_mid) s_sparse , bench "eq" $ whnf (\s' -> s' == s') s -- worst case, compares everything + , bench "compare:dense" $ whnf (\s' -> compare s' s') s -- worst case, compares everything + , bench "compare:sparse" $ whnf (\s' -> compare s' s') s_sparse -- worst case, compares everything , bgroup "folds:dense" $ foldBenchmarks IS.foldr IS.foldl IS.foldr' IS.foldl' IS.foldMap s , bgroup "folds:sparse" $ foldBenchmarks IS.foldr IS.foldl IS.foldr' IS.foldl' IS.foldMap s_sparse ]