Use README + testsuite in benchmarks.
This commit is contained in:
parent
38c452b342
commit
5b6e70c3b5
1 changed files with 2 additions and 1 deletions
|
@ -38,8 +38,9 @@ normalizeBench doc = [ bench "normalize - with" $ nf (encodeJSON . normalize) do
|
|||
main :: IO ()
|
||||
main = do
|
||||
inp <- readDataFile (Just ".") "README"
|
||||
inp2 <- readDataFile (Just ".") "tests/testsuite.txt"
|
||||
let opts = def{ readerSmart = True }
|
||||
let doc = readMarkdown opts inp
|
||||
let doc = readMarkdown opts $ inp ++ unlines (drop 3 $ lines inp2)
|
||||
let readerBs = map (readerBench doc) readers
|
||||
let writers' = [(n,w) | (n, PureStringWriter w) <- writers]
|
||||
defaultMain $
|
||||
|
|
Loading…
Add table
Reference in a new issue