This is an archive of the discontinued LLVM Phabricator instance.

Add benchmarks for basic_string::erase
ClosedPublic

Authored by mvels on Jan 30 2020, 1:03 PM.

Details

Summary

This change adds 2 benchmarks for basic_string::erase

EraseToEnd - erases data from a pos to end (npos). This is an intended fast path for V2
EraseWithMove - erases data in the middle of the string. This is the slow path requiring moving data about.

Diff Detail

Event Timeline

mvels created this revision.Jan 30 2020, 1:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2020, 1:03 PM
mvels edited the summary of this revision. (Show Details)Jan 30 2020, 1:05 PM
mvels added a reviewer: ldionne.
ldionne accepted this revision.Feb 11 2020, 2:11 AM
This revision is now accepted and ready to land.Feb 11 2020, 2:11 AM
This revision was automatically updated to reflect the committed changes.