benchmark: use only test suite for benchmark.

This way the benchmarks don't take so long to run.
This commit is contained in:
John MacFarlane 2014-08-01 13:40:26 -07:00
parent 836d1f06bb
commit 36c9537b90

View file

@ -44,10 +44,9 @@ main = do
args <- getArgs
(conf,_) <- parseArgs defaultConfig{ cfgSamples = Last $ Just 20 }
defaultOptions args
inp <- readFile "README"
inp2 <- readFile "tests/testsuite.txt"
inp <- readFile "tests/testsuite.txt"
let opts = def{ readerSmart = True }
let doc = readMarkdown opts $ inp ++ unlines (drop 3 $ lines inp2)
let doc = readMarkdown opts inp
let readers' = [(n,r) | (n, StringReader r) <- readers]
let readerBs = mapMaybe (readerBench doc)
$ filter (\(n,_) -> n /="haddock") readers'