summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bench/Main.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/bench/Main.hs b/bench/Main.hs
index ed0d5a35..697ecce9 100644
--- a/bench/Main.hs
+++ b/bench/Main.hs
@@ -19,15 +19,10 @@ main = withRemote $ \remote -> do {
19 ; let sizes = [10, 100, 1000, 10000, 16 * 1024] 19 ; let sizes = [10, 100, 1000, 10000, 16 * 1024]
20 ; let repetitions = [1, 10, 100, 1000] 20 ; let repetitions = [1, 10, 100, 1000]
21 ; let params = [(r, s) | r <- repetitions, s <- sizes] 21 ; let params = [(r, s) | r <- repetitions, s <- sizes]
22 ; let benchmarks = (concatMap (\(a, b) -> [a, b]) $ zip 22 ; let benchmarks = map (uncurry (mkbench_ remote)) params
23 (map (uncurry (mkbench remote)) params)
24 (map (uncurry (mkbench_ remote)) params))
25 ; defaultMain benchmarks 23 ; defaultMain benchmarks
26 } 24 }
27 where 25 where
28 mkbench _ r n = bench (show r ++ "/" ++ show n) $ nfIO $
29 replicateM r $ call addr echo (B.replicate n 0)
30
31 mkbench_ re r n = bench (show r ++ "/" ++ show n) $ nfIO $ 26 mkbench_ re r n = bench (show r ++ "/" ++ show n) $ nfIO $
32 replicateM r $ call_ re addr echo (B.replicate n 0) 27 replicateM r $ call_ re addr echo (B.replicate n 0)
33 28