We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caf5c13 commit a37d0b3Copy full SHA for a37d0b3
1 file changed
section4/gperf.cpp
@@ -42,14 +42,21 @@ auto make_match = []()
42
43
void case1()
44
{
45
- auto p = make_cpu_profiler("case1.perf");
+ auto cp = make_cpu_profiler("case1.perf");
46
47
auto str = "neir:automata"s;
48
49
+#if 1
50
+ auto reg = make_regex(R"(^(\w+)\:(\w+)$)");
51
+ auto what = make_match();
52
+#endif
53
+
54
for(int i = 0; i < 1000; i++) {
55
56
+#if 0
57
auto reg = make_regex(R"(^(\w+)\:(\w+)$)");
58
auto what = make_match();
59
60
61
assert(regex_match(str, what, reg));
62
}
0 commit comments