We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35b84c commit 9652179Copy full SHA for 9652179
test/benchmark/benchmark.cc
@@ -75,7 +75,6 @@ int main(int argc, const char *argv[]) {
75
}
76
77
std::cout << "Doing " << NUM_REQUESTS << " transactions...\n";
78
- const auto benchmark_start = std::chrono::steady_clock::now();
79
modsecurity::ModSecurity *modsec;
80
modsecurity::RulesSet *rules;
81
modsecurity::ModSecurityIntervention it;
@@ -91,6 +90,9 @@ int main(int argc, const char *argv[]) {
91
90
return -1;
92
93
+ // Start timing after one-time setup to measure only transaction processing.
94
+ const auto benchmark_start = std::chrono::steady_clock::now();
95
+
96
for (unsigned long long i = 0; i < NUM_REQUESTS; i++) {
97
//std::cout << "Proceeding with request " << i << std::endl;
98
0 commit comments