File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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/* *
You can’t perform that action at this time.
0 commit comments