Compare dfa and simdjson::validate_utf8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user