Skip to content

Commit

Permalink
Benchmark truncated big string
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdomino committed Jun 19, 2024
1 parent 11149f9 commit 725bb0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ctl/string_bench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,11 @@ main()
BENCH(1000000, 1, { ctl::string_view s2(s); });
}

{
ctl::string big_trunc(48, 'a');
big_trunc.resize(4);
BENCH(1000000, 1, { ctl::string s(big_trunc); });
}

return 0;
}

0 comments on commit 725bb0c

Please sign in to comment.