llvm.org GIT mirror llvm / master benchmarks / DummyYAML.cpp
master

Tree @master (Download .tar.gz)

DummyYAML.cpp @masterraw · history · blame

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