@@ -88,6 +88,9 @@ main = do
8888 , mkBench "cat" href $ do
8989 Handles inh _ <- readIORef href
9090 BFA.cat devNull inh
91+ , mkBench "read-utf8" href $ do
92+ Handles inh _ <- readIORef href
93+ BFA.decodeUtf8Lenient inh
9194 ]
9295 , bgroup "readStream"
9396 [ mkBench "last" href $ do
@@ -114,6 +117,15 @@ main = do
114117 , mkBench "catStream" href $ do
115118 Handles inh _ <- readIORef href
116119 BFS.catStreamWrite devNull inh
120+ , mkBench "read-word8" href $ do
121+ Handles inh _ <- readIORef href
122+ BFS.readWord8 inh
123+ , mkBench "read-char8" href $ do
124+ Handles inh _ <- readIORef href
125+ BFS.decodeChar8 inh
126+ , mkBench "read-utf8" href $ do
127+ Handles inh _ <- readIORef href
128+ BFS.decodeUtf8Lenient inh
117129 ]
118130 , bgroup "copyArray"
119131 [ mkBench "copy" href $ do
@@ -132,6 +144,9 @@ main = do
132144 [ mkBench "char8" href $ do
133145 Handles inh outh <- readIORef href
134146 BFS.copyCodecChar8 inh outh
147+ , mkBench "utf8-arrays" href $ do
148+ Handles inh outh <- readIORef href
149+ BFA.copyCodecUtf8Lenient inh outh
135150 , mkBench "utf8" href $ do
136151 Handles inh outh <- readIORef href
137152 BFS.copyCodecUtf8Lenient inh outh
@@ -215,6 +230,9 @@ main = do
215230 , mkBench "splitOnSeq abcdefgh" href $ do
216231 Handles inh _ <- readIORef href
217232 BFS.splitOnSeq "abcdefgh" inh
233+ , mkBench "splitOnSeqUtf8 abcdefgh" href $ do
234+ Handles inh _ <- readIORef href
235+ BFS.splitOnSeqUtf8 "abcdefgh" inh
218236 ]
219237 , bgroup "long-pattern"
220238 [ mkBench "splitOnSeq abcdefghi" href $ do
@@ -229,6 +247,9 @@ main = do
229247 , mkBench "splitOnSuffixSeq abc...xyz" href $ do
230248 Handles inh _ <- readIORef href
231249 BFS.splitOnSuffixSeq "abcdefghijklmnopqrstuvwxyz" inh
250+ , mkBench "splitOnSeqUtf8 abc...xyz" href $ do
251+ Handles inh _ <- readIORef href
252+ BFS.splitOnSeqUtf8 "abcdefghijklmnopqrstuvwxyz" inh
232253 ]
233254 ]
234255#endif