Mercurial > hg > CbC > CbC_llvm
view llvm/benchmarks/DummyYAML.cpp @ 164:fdfabb438fbf
...
author | anatofuz |
---|---|
date | Thu, 19 Mar 2020 17:02:53 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
#include "benchmark/benchmark.h" #include "llvm/Support/YAMLTraits.h" static void BM_YAMLDummyIsNumeric(benchmark::State& state) { std::string x = "hello"; for (auto _ : state) { std::string copy(x); llvm::yaml::isNumeric(copy); } } BENCHMARK(BM_YAMLDummyIsNumeric); BENCHMARK_MAIN();