@@ -5,7 +5,7 @@ module Main where
5
5
import Control.Applicative (Const (Const , getConst ), pure )
6
6
import Control.DeepSeq (rnf )
7
7
import Control.Exception (evaluate )
8
- import Test.Tasty.Bench (bench , defaultMain , whnf , nf , bcompare )
8
+ import Test.Tasty.Bench (bench , defaultMain , whnf , nf )
9
9
import Data.Functor.Identity (Identity (.. ))
10
10
import Data.List (foldl' )
11
11
import qualified Data.Map as M
@@ -15,7 +15,6 @@ import Data.Maybe (fromMaybe)
15
15
import Data.Functor ((<$) )
16
16
import Data.Coerce
17
17
import Prelude hiding (lookup )
18
- import Utils.Containers.Internal.StrictPair
19
18
20
19
main = do
21
20
let m = M. fromAscList elems :: M. Map Int Int
@@ -102,11 +101,9 @@ main = do
102
101
, bench " eq" $ whnf (\ m' -> m' == m') m -- worst case, compares everything
103
102
, bench " compare" $ whnf (\ m' -> compare m' m') m -- worst case, compares everything
104
103
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
110
107
]
111
108
where
112
109
bound = 2 ^ 12
0 commit comments