feat: add trim in string op opposited with strip
This commit is contained in:
@ -15,4 +15,12 @@ namespace yyccbench::string::op {
|
||||
}
|
||||
BENCHMARK(BM_StringStrip)->Name("StringStrip");
|
||||
|
||||
static void BM_StringTrim(benchmark::State& state) {
|
||||
std::u8string_view strl = u8" \thello\r\n"sv, words = u8" \t\r\n"sv;
|
||||
for (auto _ : state) {
|
||||
auto rv = OP::trim(strl, words);
|
||||
}
|
||||
}
|
||||
BENCHMARK(BM_StringTrim)->Name("StringTrim");
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user