DummyYAML.cpp 301 B

12345678910111213
  1. #include "benchmark/benchmark.h"
  2. #include "llvm/Support/YAMLTraits.h"
  3. static void BM_YAMLDummyIsNumeric(benchmark::State& state) {
  4. std::string x = "hello";
  5. for (auto _ : state) {
  6. std::string copy(x);
  7. llvm::yaml::isNumeric(copy);
  8. }
  9. }
  10. BENCHMARK(BM_YAMLDummyIsNumeric);
  11. BENCHMARK_MAIN();