@@ -0,0 +1,38 @@
1+{-# LANGUAGE TupleSections #-}
6+import BenchGraph (bgraph, defaultConfig, Config(..), ComparisonStyle(..))
7+import Control.Applicative ((<|>))
11+ let cfg = defaultConfig
12+ { outputDir = "charts"
13+ , comparisonStyle = CompareDelta
16+ -- bgraph <input> <output> <field in csv file to be plotted>
17+ -- other interesting fields to plot are:
22+ bgraph "charts/results.csv" "operations" "time" $ cfg
23+ { chartTitle = Just "Streamly operations (time)"
24+ , classifyBenchmark = \b ->
25+ if "compose" `isPrefixOf` b || "/concat" `isSuffixOf` b
27+ else Just ("Streamly", last $ splitOn "/" b)
30+ bgraph "charts/results.csv" "composition" "time" $ cfg
31+ { chartTitle = Just "Streamly composition performance (time)"
32+ , classifyBenchmark = fmap ("Streamly",) . stripPrefix "compose/"
35+ bgraph "charts/results.csv" "composition-scaling" "time" $ cfg
36+ { chartTitle = Just "Streamly composition scaling (time)"
37+ , classifyBenchmark = fmap ("Streamly",) . stripPrefix "compose-"