Export of internal Abseil changes.
-- f4bb8afa9376b4120f56f3beff7b07260da4a5c2 by CJ Johnson <johnsoncj@google.com>: Add user to Github list PiperOrigin-RevId: 209630262 GitOrigin-RevId: f4bb8afa9376b4120f56f3beff7b07260da4a5c2 Change-Id: I3fedf35011d805ee4a20b92e073b43523b47d15b
This commit is contained in:
parent
fefc83638f
commit
bed5bd6e18
54 changed files with 302 additions and 302 deletions
|
|
@ -38,16 +38,16 @@ struct Replacement {
|
|||
{"liquor", "shakes"}, //
|
||||
};
|
||||
|
||||
// Here, we set up a std::string for use in global-replace benchmarks.
|
||||
// Here, we set up a string for use in global-replace benchmarks.
|
||||
// We started with a million blanks, and then deterministically insert
|
||||
// 10,000 copies each of two pangrams. The result is a std::string that is
|
||||
// 10,000 copies each of two pangrams. The result is a string that is
|
||||
// 40% blank space and 60% these words. 'the' occurs 18,247 times and
|
||||
// all the substitutions together occur 49,004 times.
|
||||
//
|
||||
// We then create "after_replacing_the" to be a std::string that is a result of
|
||||
// We then create "after_replacing_the" to be a string that is a result of
|
||||
// replacing "the" with "box" in big_string.
|
||||
//
|
||||
// And then we create "after_replacing_many" to be a std::string that is result
|
||||
// And then we create "after_replacing_many" to be a string that is result
|
||||
// of preferring several substitutions.
|
||||
void SetUpStrings() {
|
||||
if (big_string == nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue