Skip to content

Commit 1ad50d1

Browse files
committed
Docs: Renaming small_string benchmark
1 parent 77808a6 commit 1ad50d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

less_slow.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,16 +2284,17 @@ BENCHMARK(packaging_stl_any)->MinTime(2);
22842284
* https://github.com/ashvardanian/stringzilla?tab=readme-ov-file#memory-ownership-and-small-string-optimization
22852285
*/
22862286

2287-
static void small_string(bm::State &state) {
2287+
static void construct_string(bm::State &state) {
22882288
std::size_t length = static_cast<std::size_t>(state.range(0));
22892289
for (auto _ : state) bm::DoNotOptimize(std::string(length, 'x'));
22902290
}
22912291

22922292
// clang-format off
2293-
BENCHMARK(small_string)
2293+
BENCHMARK(construct_string)
22942294
->Arg(7)->Arg(8)->Arg(15)->Arg(16)
22952295
->Arg(22)->Arg(23)->Arg(24)->Arg(25)
2296-
->Arg(31)->Arg(32)->Arg(33);
2296+
->Arg(31)->Arg(32)->Arg(33)
2297+
->Name("construct_string/length=");
22972298
// clang-format on
22982299

22992300
/**

0 commit comments

Comments
 (0)