[commit: packages/containers] cleaned_bugfix394, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-408-bugfix_394: Add longer fromList benchmark (b21431e)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:43:47 UTC 2017


Repository : ssh://git@git.haskell.org/containers

On branches: cleaned_bugfix394,master,merge-doc-target,merge-fixes-5.9,merge-restrict-fix-5.8,revert-408-bugfix_394
Link       : http://git.haskell.org/packages/containers.git/commitdiff/b21431e6a5065de692bedf93d22b09a02394291e

>---------------------------------------------------------------

commit b21431e6a5065de692bedf93d22b09a02394291e
Author: David Feuer <David.Feuer at gmail.com>
Date:   Tue Jun 14 18:33:14 2016 -0400

    Add longer fromList benchmark
    
    The previous benchmarks weren't big enough to reveal certain
    cache effects.


>---------------------------------------------------------------

b21431e6a5065de692bedf93d22b09a02394291e
 benchmarks/Sequence.hs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/benchmarks/Sequence.hs b/benchmarks/Sequence.hs
index 527020b..99d1ca4 100644
--- a/benchmarks/Sequence.hs
+++ b/benchmarks/Sequence.hs
@@ -40,6 +40,7 @@ main = do
          , bench "100" $ nf S.fromList [(0 :: Int)..99]
          , bench "1000" $ nf S.fromList [(0 :: Int)..999]
          , bench "10000" $ nf S.fromList [(0 :: Int)..9999]
+         , bench "100000" $ nf S.fromList [(0 :: Int)..99999]
          ]
       , bgroup "partition"
          [ bench "10" $ nf (S.partition even) s10



More information about the ghc-commits mailing list