view 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 source

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