git.iko.soy/typeable/pandoc
on master help sign in
Revised benchmark for new metadata.
commit3aa5733f30b6daf755a00d0c2a318fb55a177289 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 25 Jun 2013, 18:17 (13 years ago) parent16d6005
1 file changed+1−2
benchmark/benchmark-pandoc.hs+1−2
benchmark/benchmark-pandoc.hs+1−2
@@ -13,8 +13,7 @@ readerBench doc (name, reader) =
1313 _ -> error $ "Could not find writer for " ++ name
1414 inp = writer def{ writerWrapText = True } doc
1515 -- we compute the length to force full evaluation
16− getLength (Pandoc (Meta a b c) d) =
17− length a + length b + length c + length d
16+ getLength (Pandoc (Meta _) d) = length d
1817 in bench (name ++ " reader") $ whnfIO $ getLength `fmap`
1918 (reader def{ readerSmart = True }) inp
2019