@@ -4,8 +4,9 @@ module Main where
44
55import Graphics.Vty
66
7−import qualified BenchVerticalScroll
7+import qualified BenchNoDiffOpt
88import qualified BenchRenderChar
9+import qualified BenchVerticalScroll
910
1011import Control.Monad
1112
@@ -17,9 +18,10 @@ import System.Posix.Process
1718
1819main = do
1920 args <- getArgs
20− let benches = [ ("vertical-scroll-0", BenchVerticalScroll.main)
21+ let benches = [ ("no-diff-opt-0", BenchNoDiffOpt.bench_0)
2122 , ("render-char-0", BenchRenderChar.bench_0)
22− , ("render-char-1", BenchRenderChar.bench_1)]
23+ , ("render-char-1", BenchRenderChar.bench_1)
24+ , ("vertical-scroll-0", BenchVerticalScroll.bench_0)]
2325 help = forM_ benches $ \(b,_) -> putStrLn $ "--" ++ b
2426 case args of
2527 ["--help"] -> help
@@ -28,7 +30,8 @@ main = do
2830 let args' = if args /= []
2931 then args
3032 else map fst benches
31− results <- forM args' $ \b -> do
33+ -- drop the dash-dash "--"
34+ results <- forM args' $ \(_ : _ : b) -> do
3235 case lookup b benches of
3336 Just f -> bench b f
3437 Nothing -> fail $ "No benchmark named " ++ b