# androidx.benchmark.junit4

*** ** * ** ***

## Classes

|---|---|
| `https://developer.android.com/reference/androidx/benchmark/junit4/AndroidBenchmarkRunner` | Instrumentation runner for benchmarks, used to increase stability of measurements and minimize interference. |
| `https://developer.android.com/reference/androidx/benchmark/junit4/BenchmarkRule` | JUnit rule for benchmarking code on an Android device. |
| `https://developer.android.com/reference/androidx/benchmark/junit4/BenchmarkRule.Scope` | Handle used for controlling measurement during `https://developer.android.com/reference/androidx/benchmark/junit4/package-summary#(androidx.benchmark.junit4.BenchmarkRule).measureRepeated(kotlin.Function1)`. |
| `https://developer.android.com/reference/androidx/benchmark/junit4/BenchmarkRuleKt` |   |
| `https://developer.android.com/reference/androidx/benchmark/junit4/PerfettoTraceRule` | Add this rule to record a Perfetto trace for each test on Android Lollipop (API 21)+ devices. |