xref: /openbsd-src/gnu/llvm/llvm/benchmarks/DummyYAML.cpp (revision 09467b48e8bc8b4905716062da846024139afbf2)
1 #include "benchmark/benchmark.h"
2 #include "llvm/Support/YAMLTraits.h"
3 
BM_YAMLDummyIsNumeric(benchmark::State & state)4 static void BM_YAMLDummyIsNumeric(benchmark::State& state) {
5   std::string x = "hello";
6   for (auto _ : state) {
7     std::string copy(x);
8     llvm::yaml::isNumeric(copy);
9   }
10 }
11 BENCHMARK(BM_YAMLDummyIsNumeric);
12 
13 BENCHMARK_MAIN();
14