Compare dfa and simdjson::validate_utf8

This commit is contained in:
2025-06-23 14:29:49 -04:00
parent 578e507b96
commit 2299904557

View File

@@ -353,6 +353,10 @@ TEST_CASE("utf8 dfa") {
bench.doNotOptimizeAway( bench.doNotOptimizeAway(
dfa.scan(match.data(), match.data() + match.size())); 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 // Different input structures with special care in the implementation