on master help sign in
Benchmark toLower.

--HG-- extra : convert_revision : d714a700efaa82125701c6af89de89bd18b9970e

commit44b2703a6ae84f7db93c709275d3e315da01342a authorBryan O'Sullivan <bos@serpentine.com> dateThu 3 Dec 2009, 06:48 (17 years ago) parent4efa82c
1 file changed+14
tests/Benchmarks.hs+14
tests/Benchmarks.hs+14
@@ -223,6 +223,13 @@ main = do
223223 , bench "bl" $ nf BL.tail bla
224224 , bench "l" $ nf L.tail la
225225 ],
226+ bgroup "toLower" [
227+ bench "ts" $ nf TS.toLower tsa
228+ , bench "tl" $ nf TL.toLower tla
229+ , bench "bs" $ nf (BS.map toLower) bsa
230+ , bench "bl" $ nf (BL.map toLower) bla
231+ , bench "l" $ nf (L.map toLower) la
232+ ],
226233 bgroup "toUpper" [
227234 bench "ts" $ nf TS.toUpper tsa
228235 , bench "tl" $ nf TL.toUpper tla
@@ -340,6 +347,13 @@ main = do
340347 , bench "bl" $ nf (BL.length . BL.tail) bla
341348 , bench "l" $ nf (L.length . L.tail) la
342349 ],
350+ bgroup "toLower" [
351+ bench "ts" $ nf (TS.length . TS.toLower) tsa
352+ , bench "tl" $ nf (TL.length . TL.toLower) tla
353+ , bench "bs" $ nf (BS.length . BS.map toLower) bsa
354+ , bench "bl" $ nf (BL.length . BL.map toLower) bla
355+ , bench "l" $ nf (L.length . L.map toLower) la
356+ ],
343357 bgroup "toUpper" [
344358 bench "ts" $ nf (TS.length . TS.toUpper) tsa
345359 , bench "tl" $ nf (TL.length . TL.toUpper) tla