Skip to content

Commit

Permalink
Measure toUpper.
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : a59da3bb394b1a5ce3de3a5a5b69597a18946477
  • Loading branch information
bos committed Dec 2, 2009
1 parent cc1b015 commit 1f4ce2a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Benchmarks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@ main = do
, bench "bl" $ nf BL.tail bla
, bench "l" $ nf L.tail la
],
bgroup "toUpper" [
bench "ts" $ nf TS.toUpper tsa
, bench "tl" $ nf TL.toUpper tla
, bench "bs" $ nf (BS.map toUpper) bsa
, bench "bl" $ nf (BL.map toUpper) bla
, bench "l" $ nf (L.map toUpper) la
],
bgroup "words" [
bench "ts" $ nf TS.words tsa
, bench "tl" $ nf TL.words tla
Expand Down Expand Up @@ -333,6 +340,13 @@ main = do
, bench "bl" $ nf (BL.length . BL.tail) bla
, bench "l" $ nf (L.length . L.tail) la
],
bgroup "toUpper" [
bench "ts" $ nf (TS.length . TS.toUpper) tsa
, bench "tl" $ nf (TL.length . TL.toUpper) tla
, bench "bs" $ nf (BS.length . BS.map toUpper) bsa
, bench "bl" $ nf (BL.length . BL.map toUpper) bla
, bench "l" $ nf (L.length . L.map toUpper) la
],
bgroup "words" [
bench "ts" $ nf (L.length . TS.words) tsa
, bench "tl" $ nf (L.length . TL.words) tla
Expand Down

0 comments on commit 1f4ce2a

Please sign in to comment.