Mercurial > hg > CbC > CbC_llvm
diff benchmarks/DummyYAML.cpp @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/benchmarks/DummyYAML.cpp Wed Aug 14 19:46:37 2019 +0900 @@ -0,0 +1,13 @@ +#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();