Benchmarks

Benchmark protocol

Compare React Native and hosted Compose screens in the same Pokédex app with a controlled workload and a fixed toolchain.

On this page

Compare one change at a time#

Use the Pokédex demo on a pinned commit. Run the same list → detail → back workload twice, once with both screens in React Native and once with the screen under test set to Compose. Select Ktor in both configurations and serve the same response data. Keep the device, OS, release build, app state and test data fixed. Run cold and warm starts separately and alternate variants across runs.

Record what changed#

  • Navigation: time from tapping a row until the detail content is visible, plus frame timing during the transition where the runner makes it available.
  • Scrolling: frame timing for the same list, data and scripted gestures.
  • Reproduction: publish the commit, toolchain, device, scenario, raw observations and sample count for each platform. Report both the median and spread for each measurement.

The comparison concerns hosted screens in the hybrid app. Use a separate run if measuring the standalone Kotlin app. Android Macrobenchmark · XCTest performance tests

Status: protocol proposed. Results and a versioned measurement harness are pending.