[go: nahoru, domu]

Add a "Dry Run" benchmark mode for presubmit

Bug: 138785848
Test: ./gradlew bench:b-c:cC bench:b-j:cC bench:i-t:d-r-b:cC bench:i-t:s-b:cC

A benchmark dry run produces no output, and only runs the loop once.

This is useful for validating correctness quickly, e.g. for presubmit.

Change-Id: Ied4a601482d785383a2a68d528651f7c9d180802
diff --git a/settings.gradle b/settings.gradle
index 8e9171e..72b7509 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -63,6 +63,7 @@
 includeProject(":benchmark:benchmark-junit4", "benchmark/junit4")
 includeProject(":benchmark:benchmark-benchmark", "benchmark/benchmark")
 includeProject(":benchmark:benchmark-gradle-plugin", "benchmark/gradle-plugin")
+includeProject(":benchmark:integration-tests:dry-run-benchmark", "benchmark/integration-tests/dry-run-benchmark")
 includeProject(":benchmark:integration-tests:startup-benchmark", "benchmark/integration-tests/startup-benchmark")
 includeProject(":biometric", "biometric")
 includeProject(":browser", "browser")