repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
benchmarks
/
DummyYAML.cpp
blob
c06b001bb031ab39597a48e0c7753cc046342fda
1
#include
"benchmark/benchmark.h"
2
#include
"llvm/Support/YAMLTraits.h"
3
4
static 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
}
11
BENCHMARK
(
BM_YAMLDummyIsNumeric
);
12
13
BENCHMARK_MAIN
();