blob: c06b001bb031ab39597a48e0c7753cc046342fda [file] [log] [blame]
Kirill Bobyrev18c6fab2018-08-28 09:42:41 +00001#include "benchmark/benchmark.h"
2#include "llvm/Support/YAMLTraits.h"
3
4static 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}
11BENCHMARK(BM_YAMLDummyIsNumeric);
12
13BENCHMARK_MAIN();