Skip to content

Commit 092633e

Browse files
committed
A bit of cleanup
1 parent cd1ec88 commit 092633e

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

benchmarks/FineGrained.hs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,6 @@ bSetFromList =
236236
setupBytes s gen = genNBytes s bytesLength gen
237237
setupInts = genInts
238238

239-
{-
240-
bg :: _
241-
bg name setup run = bgroup name (b setup run)
242-
where
243-
b e run = [env (e s) (run s) | s <- defaultSizes]
244-
-}
245-
246239
keysToMap :: (Hashable k) => [k] -> HashMap k Int
247240
keysToMap = HM.fromList . map (,1)
248241

@@ -253,13 +246,6 @@ genInts ::
253246
m [Int]
254247
genInts n = replicateM n . uniformM
255248

256-
{-
257-
bFromList = matrix defaultSizes e' b'
258-
where
259-
e' s = uniformListM s defaultGen
260-
b' = whnf HM.fromList
261-
-}
262-
263249
{-
264250
bInsert = [ env m $ \d -> bench (show s) $ whnf (\(k, v, m) -> HM.insert k v m) d ]
265251
where m s = do
@@ -270,13 +256,3 @@ bInsert = [ env m $ \d -> bench (show s) $ whnf (\(k, v, m) -> HM.insert k v m)
270256
HMI.unsafeInsert b v hm
271257
return (m, newKeys) -- separate existing, new
272258
-}
273-
274-
{-
275-
matrix :: (NFData env) => [Int] -> (Int -> IO env) -> (env -> Benchmarkable) -> Benchmark
276-
matrix sizes e x = b -- [ b @Bytes, b @Int] -- , b @SlowInt, b @Colli ]
277-
where
278-
b = bgroup "bla" [runTemplate @Int e x s | s <- sizes]
279-
280-
runTemplate :: forall env. (NFData env) => (Int -> IO env) -> (env -> Benchmarkable) -> Int -> Benchmark
281-
runTemplate e b s = env (e s) $ \x -> bench (show s) (b x)
282-
-}

0 commit comments

Comments
 (0)