benchpress 0.2.2 → 0.2.2.1
raw patch · 2 files changed
+9/−5 lines, 2 filesdep ~basedep ~timePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, time
API changes (from Hackage documentation)
Files
- Test/BenchPress.hs +6/−2
- benchpress.cabal +3/−3
Test/BenchPress.hs view
@@ -62,7 +62,7 @@ import Control.Exception (bracket) import Control.Monad (forM, forM_)-import Data.List (intercalate, sort)+import Data.List (intersperse, sort) import Data.Time.Clock (NominalDiffTime, diffUTCTime, getCurrentTime) import qualified Math.Statistics as Math import Prelude hiding (max, min)@@ -182,7 +182,8 @@ -- | Prints a summary row for each benchmark with an associated label. -- The summary contains the same statistics as in 'printDetailedStats'--- except for the execution time percentiles.+-- except for the execution time percentiles. Writes output to+-- standard output. printStatsSummaries :: [(String, Stats)] -> IO () printStatsSummaries rows = do printSummaryHeader lblLen colWidth@@ -252,3 +253,6 @@ -- | Converts seconds to milliseconds. secsToMillis :: NominalDiffTime -> Double secsToMillis t = realToFrac t * (10^(3 :: Int))++intercalate :: [a] -> [[a]] -> [a]+intercalate xs = concat . intersperse xs
benchpress.cabal view
@@ -1,5 +1,5 @@ name: benchpress-version: 0.2.2+version: 0.2.2.1 synopsis: Micro-benchmarking with detailed statistics. Description: Benchmarks actions and produces statistics such as min, mean, median, standard deviation,@@ -19,8 +19,8 @@ other-modules: Math.Statistics - build-depends: base >= 2.1 && < 3.1,+ build-depends: base >= 2.0 && < 3.1, mtl >= 1 && < 1.2,- time >= 1.1 && < 1.2+ time >= 1.0 && < 1.2 ghc-options: -funbox-strict-fields -Wall