llvm-for-llvmta/benchmarks/DummyYAML.cpp
Nils Hölscher 3500bf8dde first commit
2022-04-25 10:02:23 +02:00

14 lines
301 B
C++

#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();