diff --git a/src/test.cpp b/src/test.cpp index 9fb36cc..ee8f1d7 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -353,6 +353,10 @@ TEST_CASE("utf8 dfa") { bench.doNotOptimizeAway( dfa.scan(match.data(), match.data() + match.size())); }); + bench.run("simdjson utf8", [&]() { + bench.doNotOptimizeAway( + simdjson::validate_utf8(match.data(), match.size())); + }); } // Different input structures with special care in the implementation