Skip to content

Commit

Permalink
plot-performance: Rename f0 to dropAppMain
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Aug 6, 2023
1 parent 483123e commit 6715876
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/plot-performance/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ main = do op <- execParser opts
-- TODO: use a regexp?
let isSelectedTest b = Prelude.any (`isPrefixOf` test b) (optsFilter op)
selectTests = V.filter isSelectedTest
dropAppMain = V.filter (\b -> test b /= "app/Main")

vb <- f0 <$> readCSV (optsBeforeFile op)
va <- f0 <$> readCSV (optsAfterFile op)
vb <- dropAppMain <$> readCSV (optsBeforeFile op)
va <- dropAppMain <$> readCSV (optsAfterFile op)

case (optsSort op, null $ optsFilter op, optsCombine op) of
(Just n , False, True ) ->
Expand Down Expand Up @@ -97,5 +98,3 @@ main = do op <- execParser opts
(Nothing, True , _ ) ->
let bds = splitBenchmarks vb va
in do chartToFile False "Perf" bds (outdir ++ "perf.svg")
where
f0 = V.filter (\b -> test b /= "app/Main")

0 comments on commit 6715876

Please sign in to comment.