@@ -116,6 +116,27 @@ static void CustomArguments(benchmark::internal::Benchmark* b) {
...
@@ -116,6 +116,27 @@ static void CustomArguments(benchmark::internal::Benchmark* b) {
BENCHMARK(BM_SetInsert)->Apply(CustomArguments);
BENCHMARK(BM_SetInsert)->Apply(CustomArguments);
```
```
### Calculate asymptotic complexity (Big O)
Asymptotic complexity might be calculated for a family of benchmarks. The following code will calculate the coefficient for the high-order term in the running time and the normalized root-mean square error of string comparison.