on master help sign in
Measure toUpper.

--HG-- extra : convert_revision : a59da3bb394b1a5ce3de3a5a5b69597a18946477

commit1f4ce2ae756f2c12e9215db8310d6c954a47959a authorBryan O'Sullivan <bos@serpentine.com> dateWed 2 Dec 2009, 08:05 (17 years ago) parentcc1b015
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 "toUpper" [
227+ bench "ts" $ nf TS.toUpper tsa
228+ , bench "tl" $ nf TL.toUpper tla
229+ , bench "bs" $ nf (BS.map toUpper) bsa
230+ , bench "bl" $ nf (BL.map toUpper) bla
231+ , bench "l" $ nf (L.map toUpper) la
232+ ],
226233 bgroup "words" [
227234 bench "ts" $ nf TS.words tsa
228235 , bench "tl" $ nf TL.words tla
@@ -333,6 +340,13 @@ main = do
333340 , bench "bl" $ nf (BL.length . BL.tail) bla
334341 , bench "l" $ nf (L.length . L.tail) la
335342 ],
343+ bgroup "toUpper" [
344+ bench "ts" $ nf (TS.length . TS.toUpper) tsa
345+ , bench "tl" $ nf (TL.length . TL.toUpper) tla
346+ , bench "bs" $ nf (BS.length . BS.map toUpper) bsa
347+ , bench "bl" $ nf (BL.length . BL.map toUpper) bla
348+ , bench "l" $ nf (L.length . L.map toUpper) la
349+ ],
336350 bgroup "words" [
337351 bench "ts" $ nf (L.length . TS.words) tsa
338352 , bench "tl" $ nf (L.length . TL.words) tla