mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
Benchmark truncated big string
This commit is contained in:
parent
11149f973c
commit
725bb0cd5a
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue