mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:29:51 +00:00
14 lines
301 B
C++
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();
|