@@ -5,7 +5,7 @@ module Main where
55import Control.Applicative (Const (Const , getConst ), pure )
66import Control.DeepSeq (rnf )
77import Control.Exception (evaluate )
8- import Test.Tasty.Bench (bench , defaultMain , whnf , nf , bcompare )
8+ import Test.Tasty.Bench (bench , defaultMain , whnf , nf )
99import Data.Functor.Identity (Identity (.. ))
1010import Data.List (foldl' )
1111import qualified Data.Map as M
@@ -15,7 +15,6 @@ import Data.Maybe (fromMaybe)
1515import Data.Functor ((<$) )
1616import Data.Coerce
1717import Prelude hiding (lookup )
18- import Utils.Containers.Internal.StrictPair
1918
2019main = do
2120 let m = M. fromAscList elems :: M. Map Int Int
@@ -102,11 +101,9 @@ main = do
102101 , bench " eq" $ whnf (\ m' -> m' == m') m -- worst case, compares everything
103102 , bench " compare" $ whnf (\ m' -> compare m' m') m -- worst case, compares everything
104103
105- , bench " restrictKeys+withoutKeys"
106- $ whnf (\ ks -> M. restrictKeys m ks :*: M. withoutKeys m ks) m_odd_keys
107- , bcompare " /restrictKeys+withoutKeys/"
108- $ bench " partitionKeys"
109- $ whnf (M. partitionKeys m) m_odd_keys
104+ , bench " restrictKeys" $ whnf (M. restrictKeys m) m_odd_keys
105+ , bench " withoutKeys" $ whnf (M. withoutKeys m) m_odd_keys
106+ , bench " partitionKeys" $ whnf (M. partitionKeys m) m_odd_keys
110107 ]
111108 where
112109 bound = 2 ^ 12
0 commit comments