-
-
-BENCHMARK(releaseStack, iters) {
- for (size_t i = 0; i < iters; ++i) {
- MemoryIdler::unmapUnusedStack();
- }
-}
-
-BENCHMARK(releaseMallocTLS, iters) {
- for (size_t i = 0; i < iters; ++i) {
- MemoryIdler::flushLocalMallocCaches();
- }
-}
-
-int main(int argc, char** argv) {
- testing::InitGoogleTest(&argc, argv);
- gflags::ParseCommandLineFlags(&argc, &argv, true);
-
- auto rv = RUN_ALL_TESTS();
- if (!rv && FLAGS_benchmark) {
- folly::runBenchmarks();
- }
- return rv;
-}