/*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
"vulputate quam urna quis eros. Donec vel."
"\n";
-string needle = "commodo";
+const string needle = "commodo";
// legacy implementation
struct AsciiCaseInsensitiveLegacy {
cmp
) - lorem_ipsum.begin();
}
+ doNotOptimizeAway(dummy);
}
BENCHMARK(LegacyCaseInsensitiveCheck, iters) {
}
int main(int argc, char** argv) {
- google::ParseCommandLineFlags(&argc, &argv, true);
+ gflags::ParseCommandLineFlags(&argc, &argv, true);
folly::runBenchmarks();
if (FLAGS_benchmark) {
folly::runBenchmarks();