Run Realm Kotlin benchmarks on Android
mainAndroid benchmarks utilize Jetpack Microbenchmarks. You can run them via Gradle or directly from your IDE as a normal Android Integration Test.
Important Note on Emulators: While benchmarks can run on emulators, results are often unreliable due to high variance. For accurate results, use real devices. If you must use an emulator, use API level 29 or below to avoid scoped storage restrictions.
To run via Gradle:
./gradlew androidApp:connectedCheck -e no-isolated-storage true