Skip to content

Commit 1e9c3ce

Browse files
authored
Merge pull request #910 from haskell/issue-593
Resolve #593: Add charEscapes benchmark
2 parents 1aa38b1 + 140024b commit 1e9c3ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

benchmarks/bench/Suite.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ escapeBench = bgroup "Escape"
9292
bs = Base16.encode $ TE.encodeUtf16BE $ T.pack [c]
9393

9494
in LBS.toStrict $ B.toLazyByteString $ foldMap formatChar chars
95+
, example "charEscapes" $
96+
BS.concat $ replicate 10000 $ BS8.pack "\\\""
9597
]
9698
where
9799
example :: String -> BS.ByteString -> Benchmark

0 commit comments

Comments
 (0)