@@ -126,15 +126,15 @@ main = do
126
126
nf (\ s -> ((+) <$> s <*> s) `S.index` (S. length s * S. length s `div` 2 ))
127
127
(S. fromFunction (floor (sqrt $ fromIntegral (maxBound :: Int ))- 10 ) (+ 1 ))
128
128
, bench " nf100/2500/rep" $
129
- nf (\ (s,t) -> (,) <$> replicate s () <*> replicate t () ) (100 ,2500 )
129
+ nf (\ (s,t) -> (,) <$> S. replicate s () <*> S. replicate t () ) (100 ,2500 )
130
130
, bench " nf100/2500/ff" $
131
131
nf (\ (s,t) -> (,) <$> S. fromFunction s (+ 1 ) <*> S. fromFunction t (* 2 )) (100 ,2500 )
132
132
, bench " nf500/500/rep" $
133
- nf (\ (s,t) -> (,) <$> replicate s () <*> replicate t () ) (500 ,500 )
133
+ nf (\ (s,t) -> (,) <$> S. replicate s () <*> S. replicate t () ) (500 ,500 )
134
134
, bench " nf500/500/ff" $
135
135
nf (\ (s,t) -> (,) <$> S. fromFunction s (+ 1 ) <*> S. fromFunction t (* 2 )) (500 ,500 )
136
136
, bench " nf2500/100/rep" $
137
- nf (\ (s,t) -> (,) <$> replicate s () <*> replicate t () ) (2500 ,100 )
137
+ nf (\ (s,t) -> (,) <$> S. replicate s () <*> S. replicate t () ) (2500 ,100 )
138
138
, bench " nf2500/100/ff" $
139
139
nf (\ (s,t) -> (,) <$> S. fromFunction s (+ 1 ) <*> S. fromFunction t (* 2 )) (2500 ,100 )
140
140
]
0 commit comments