Benchmark truncated big string

This commit is contained in:
Steven Dee (Jōshin) 2024-06-18 22:38:11 -07:00
parent 11149f973c
commit 725bb0cd5a
No known key found for this signature in database

View file

@ -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;
}