Revised benchmark for new metadata.
This commit is contained in:
parent
16d6005ed9
commit
3aa5733f30
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@ readerBench doc (name, reader) =
|
|||
_ -> error $ "Could not find writer for " ++ name
|
||||
inp = writer def{ writerWrapText = True } doc
|
||||
-- we compute the length to force full evaluation
|
||||
getLength (Pandoc (Meta a b c) d) =
|
||||
length a + length b + length c + length d
|
||||
getLength (Pandoc (Meta _) d) = length d
|
||||
in bench (name ++ " reader") $ whnfIO $ getLength `fmap`
|
||||
(reader def{ readerSmart = True }) inp
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue