packages feed

bench-graph 0.1.3 → 0.1.4

raw patch · 5 files changed

+18/−19 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Changelog.md view
@@ -1,3 +1,9 @@+## 0.1.4++* Fix a bug resulting in a bogus error, something like "Field [time] found at+  different indexes.." even though the field has exactly the same index at all+  places.+ ## 0.1.3  * Add maxrss plotting support
README.md view
@@ -1,5 +1,9 @@ # 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). 
bench-graph.cabal view
@@ -1,5 +1,5 @@ name:               bench-graph-version:            0.1.3+version:            0.1.4 synopsis:           Plot and compare benchmarks description:   Plot benchmarks and compare them. An easy to use package to produce pretty@@ -15,7 +15,9 @@ 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, GHC==8.4.3+tested-with:           GHC==8.4.3+                     , GHC==8.2.2+                     , GHC==7.10.3 author:              Harendra Kumar maintainer:          harendra.kumar@gmail.com copyright:           2017 Composewell Technologies@@ -28,7 +30,6 @@     Changelog.md     README.md     stack.yaml-    stack-8.0.yaml     stack-8.2.yaml     test/results.csv     test/results.csvraw
lib/BenchGraph.hs view
@@ -44,8 +44,8 @@ import Control.Monad (when) import Control.Monad.Trans.State.Lazy (get, put) import Data.Char (toUpper)-import Data.Function ((&))-import Data.List (nub, transpose, findIndex, groupBy, (\\), group, sort)+import Data.Function ((&), on)+import Data.List (nub, nubBy, transpose, findIndex, groupBy, (\\), group, sort) import Data.Maybe (catMaybes, fromMaybe, maybe) import Debug.Trace (trace) import System.Directory (createDirectoryIfMissing)@@ -353,7 +353,8 @@ -- can return multiple indexes or empty list getFieldIndexUnchecked :: String -> [(Int, [String])] -> [(Int, Int)] getFieldIndexUnchecked fieldName csvlines =-    nub $ catMaybes $ map (getFieldIndexInLine fieldName) csvlines+    nubBy ((==) `on` snd) $+        catMaybes $ map (getFieldIndexInLine fieldName) csvlines  getFieldIndexChecked :: String -> [(Int, [String])] -> Int getFieldIndexChecked fieldName csvlines =
− stack-8.0.yaml
@@ -1,13 +0,0 @@-resolver: lts-9.21-packages:-- '.'-extra-deps:-  - 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