packages feed

bench-graph 0.1.0 → 0.1.1

raw patch · 6 files changed

+37/−20 lines, 6 filesdep −Uniquedep −bytestringdep ~Chartdep ~Chart-diagramsPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies removed: Unique, bytestring

Dependency ranges changed: Chart, Chart-diagrams

API changes (from Hackage documentation)

- BenchGraph: Config :: FilePath -> Maybe String -> (String -> Maybe (String, String)) -> ([String] -> [String]) -> ([String] -> [String]) -> Maybe (Double, Double, Int) -> ComparisonStyle -> Config
+ BenchGraph: Config :: FilePath -> Maybe String -> String -> Maybe (String, String) -> [String] -> [String] -> [String] -> [String] -> Maybe (Double, Double, Int) -> ComparisonStyle -> Config

Files

Changelog.md view
@@ -1,3 +1,7 @@+## 0.1.1++* Support GHC 8.4+ ## 0.1.0  * Initial release
README.md view
@@ -1,12 +1,16 @@ # bench-graph +[![Hackage](https://img.shields.io/hackage/v/bench-graph.svg?style=flat)](https://hackage.haskell.org/package/bench-graph)+[![Build Status](https://travis-ci.org/composewell/bench-graph.svg?branch=master)](https://travis-ci.org/composewell/bench-graph)+[![Windows Build status](https://ci.appveyor.com/api/projects/status/5u19xvm7sn7salrh?svg=true)](https://ci.appveyor.com/project/harendra-kumar/bench-graph)+ An easy to use package to plot the benchmarking results data generated by `gauge` or `criterion` (with `--csv` or `--csvraw` options).  ## Easy and Flexible Charting  Usually we have a bunch of benchmarks in the benchmark measurement-code and that is not how you may want to present the results in graph. We may+code and that is not how we may want to present the results in graph. We may want only a subset of the benchmarks and in a different order, with more palatable names to present. Maybe we want to plot multiple graphs from the results file. `bench-graph` hides the low level charting details but allows
bench-graph.cabal view
@@ -1,5 +1,5 @@ name:               bench-graph-version:            0.1.0+version:            0.1.1 synopsis:           Plot and compare benchmarks description:   Plot benchmarks and compare them. An easy to use package to produce pretty@@ -15,7 +15,7 @@ bug-reports:         https://github.com/composewell/bench-graph/issues license:             BSD3 license-file:        LICENSE-tested-with:         GHC==7.10.3, GHC==8.0.2, GHC==8.2.2+tested-with:         GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3 author:              Harendra Kumar maintainer:          harendra.kumar@gmail.com copyright:           2017 Composewell Technologies@@ -29,6 +29,7 @@     README.md     stack.yaml     stack-8.0.yaml+    stack-8.2.yaml     test/results.csv     test/results.csvraw @@ -46,14 +47,12 @@     ghc-options: -Wall     build-depends:           base              >= 4.8     && < 5-        , bytestring        >= 0.9     && < 0.11-        , Chart             >= 1.6     && < 1.9-        , Chart-diagrams    >= 1.6     && < 1.9+        , Chart             >= 1.6     && < 2+        , Chart-diagrams    >= 1.6     && < 2         , csv               >= 0.1     && < 0.2         , filepath          >= 1.3     && < 1.5         , directory         >= 1.2     && < 1.4         , transformers      >= 0.4     && < 0.6-        , Unique            >= 0.4     && < 0.5  test-suite test     type: exitcode-stdio-1.0
lib/BenchGraph.hs view
@@ -45,7 +45,7 @@ import Control.Monad.Trans.State.Lazy (get, put) import Data.Char (toUpper) import Data.Function ((&))-import Data.List (nub, transpose, findIndex, groupBy, (\\))+import Data.List (nub, transpose, findIndex, groupBy, (\\), group, sort) import Data.Maybe (catMaybes, fromMaybe, maybe) import System.Directory (createDirectoryIfMissing) import System.FilePath ((</>))@@ -54,7 +54,10 @@ import Graphics.Rendering.Chart.Easy import Graphics.Rendering.Chart.Backend.Diagrams -import qualified Data.List.Unique as U+-- Utilities+-- Find items that are repeated more than once+getRepeated :: Ord a => [a] -> [a]+getRepeated = map head . filter ((>1) . length) . group . sort  -- | How to show the comparisons among benchmark groups. --@@ -258,7 +261,7 @@         "sortBenchGroups cannot add new groups to the original list. The\         \following new groups were added: " ++ show newGroups -    let rep = U.repeated bmTuples+    let rep = getRepeated bmTuples         z = zip origNames bmTuples         zrep = filter (\(_, tup) -> tup `elem` rep) z     when (zrep /= []) $ do
+ stack-8.2.yaml view
@@ -0,0 +1,14 @@+resolver: lts-11.10+packages:+- '.'+extra-deps:+  - Chart-diagrams-1.8.3+  - SVGFonts-1.6.0.3+  - diagrams-core-1.4.0.1+  - diagrams-lib-1.4.2+  - diagrams-postscript-1.4+  - diagrams-svg-1.4.1.1+  - diagrams-solve-0.1.1+  - dual-tree-0.2.1+  - lens-4.15.4+  - free-4.12.4
stack.yaml view
@@ -1,14 +1,7 @@-resolver: lts-11.10+resolver: lts-12.0 packages: - '.' extra-deps:-  - Chart-diagrams-1.8.3+  - Chart-1.9+  - Chart-diagrams-1.9   - SVGFonts-1.6.0.3-  - diagrams-core-1.4.0.1-  - diagrams-lib-1.4.2-  - diagrams-postscript-1.4-  - diagrams-svg-1.4.1.1-  - diagrams-solve-0.1.1-  - dual-tree-0.2.1-  - lens-4.15.4-  - free-4.12.4