1{-# LANGUAGE TupleSections #-}
2{-# LANGUAGE ScopedTypeVariables #-}
8import BenchGraph (bgraph, defaultConfig, Config(..), ComparisonStyle(..))
9import Control.Exception (handle, catch, SomeException, ErrorCall(..))
13 let cfg = defaultConfig
14 { outputDir = "charts"
15 , comparisonStyle = CompareDelta
18 ignoringErr a = catch a (\(ErrorCall err :: ErrorCall) ->
19 putStrLn $ "Failed with error:\n" ++ err ++ "\nSkipping.")
20 -- bgraph <input> <output> <field in csv file to be plotted>
21 -- other interesting fields to plot are:
26 ignoringErr $ bgraph "charts/results.csv" "operations" "time" $ cfg
27 { chartTitle = Just "Streamly operations (time)"
28 , classifyBenchmark = \b ->
29 if (not $ "serially/" `isPrefixOf` b)
30 || "/generation" `isInfixOf` b
31 || "/compose" `isInfixOf` b
32 || "/concat" `isSuffixOf` b
34 else Just ("Streamly", last $ splitOn "/" b)
37 ignoringErr $ bgraph "charts/results.csv" "generation" "time" $ cfg
38 { chartTitle = Just "Stream generation (time)"
39 , classifyBenchmark = \b ->
40 if "serially/generation" `isPrefixOf` b
41 then Just ("Streamly", last $ splitOn "/" b)
45 ignoringErr $ bgraph "charts/results.csv" "composition" "time" $ cfg
46 { chartTitle = Just "Streamly composition performance (time)"
47 , classifyBenchmark = fmap ("Streamly",) . stripPrefix "serially/compose/"
50 ignoringErr $ bgraph "charts/results.csv" "composition-scaling" "time"
52 { chartTitle = Just "Streamly composition scaling (time)"
53 , classifyBenchmark = fmap ("Streamly",) . stripPrefix "serially/compose-"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list