string.assign() heavily contributes to application's CPU usage.
This change adds benchmarks for the assign(const basic_string&) and assign(const char*) methods to be used to benchmark current usage and potential optimizations.
Paths
| Differential D67667
Add benchmarks for string assign methods ClosedPublic Authored by mvels on Sep 17 2019, 9:29 AM.
Details
Summary string.assign() heavily contributes to application's CPU usage. This change adds benchmarks for the assign(const basic_string&) and assign(const char*) methods to be used to benchmark current usage and potential optimizations.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 24 2019, 10:10 AM
Revision Contents
Diff 222621 libcxx/benchmarks/string.bench.cpp
|
Escape this memory with DoNotOptimize before entering the loop.