We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b38f240 commit a556ef2Copy full SHA for a556ef2
benchmarks/Sequence.hs
@@ -37,6 +37,13 @@ main = do
37
, bench "nf100" $ nf (uncurry S.zip) (s100, u100)
38
, bench "nf10000" $ nf (uncurry S.zip) (s10000, u10000)
39
]
40
+ , bgroup "fromFunction"
41
+ [ bench "ix10000/5000" $ nf (\s -> S.fromFunction s (+1) `S.index` (s `div` 2)) 10000
42
+ , bench "nf10" $ nf (\s -> S.fromFunction s (+1)) 10
43
+ , bench "nf100" $ nf (\s -> S.fromFunction s (+1)) 100
44
+ , bench "nf1000" $ nf (\s -> S.fromFunction s (+1)) 1000
45
+ , bench "nf10000" $ nf (\s -> S.fromFunction s (+1)) 10000
46
+ ]
47
48
49
-- splitAt+append: repeatedly cut the sequence at a random point
0 commit comments