on master help sign in
sort on index 0 if column index 1 is not available
bdd8a4dHarendra Kumar
bench.sh+4−6
@@ -10,12 +10,10 @@ print_help () {
10 echo " [--append] "
10 echo " [--append] "
11 echo " -- <gauge options>"
11 echo " -- <gauge options>"
12 echo
12 echo
13− # XXX in the report the base and candidate are shown in reverse order as we
14− # run the benchmarks for candidate first and then base.
15− #echo "When using --compare, by default comparative chart of HEAD^ vs HEAD"
13+ echo "When using --compare, by default comparative chart of HEAD^ vs HEAD"
16− #echo "commit is generated, in the 'charts' directory."
14+ echo "commit is generated, in the 'charts' directory."
17− #echo "Use --base and --candidate to select the commits to compare."
15+ echo "Use --base and --candidate to select the commits to compare."
18− #echo
16+ echo
19 echo "Any arguments after a '--' are passed directly to guage"
17 echo "Any arguments after a '--' are passed directly to guage"
20 echo "You can omit '--' if the gauge args used do not start with a '-'."
18 echo "You can omit '--' if the gauge args used do not start with a '-'."
21 exit
19 exit
benchmark/Chart.hs+6−2
@@ -158,8 +158,12 @@ benchShow Options{..} cfg func inp out =
158 ignoringErr $ report inp Nothing $ cfg
158 ignoringErr $ report inp Nothing $ cfg
159 { selectBenchmarks =
159 { selectBenchmarks =
160 \f ->
160 \f ->
161− reverse $ map fst $
161+ reverse
162+ $ map fst
163+ $ either
164+ (const $ either error id $ f $ ColumnIndex 0)
162− sortBy (comparing snd) $ f $ ColumnIndex 1
165+ (sortBy (comparing snd))
166+ $ f $ ColumnIndex 1
163 }
167 }
164
168
165main :: IO ()
169main :: IO ()
stack.yaml+3−7
@@ -5,17 +5,13 @@ allow-newer: true
5extra-deps:
5extra-deps:
6 - SDL-0.6.6.0
6 - SDL-0.6.6.0
7 - gauge-0.2.3
7 - gauge-0.2.3
8− #- bench-graph-0.1.4
9 - Chart-1.9
8 - Chart-1.9
10 - Chart-diagrams-1.9
9 - Chart-diagrams-1.9
11 - SVGFonts-1.6.0.3
10 - SVGFonts-1.6.0.3
12− - math-functions-0.3.0.2
11+
12+ #- bench-graph-0.1.4
13 - git: https://github.com/composewell/bench-graph
13 - git: https://github.com/composewell/bench-graph
14− commit: 27ea72037f01e252364197e4771e25478af97972
14+ commit: 40bcf995a1bb02dbce40117db3b73555b3921f35
15− - git: https://github.com/harendra-kumar/statistics
16− commit: d3c4743c28fdd83d578039867f1a046596f77140
17− subdirs:
18− - dense-linear-algebra
19
15
20flags: {}
16flags: {}
21extra-package-dbs: []
17extra-package-dbs: []