v0.1.0a26Get started
benchmarks

pyxpo vs Expo vs native

One small app built three times: with pyxpo, with Expo (React Native), and natively with Kotlin and Jetpack Compose or Swift and SwiftUI. Same screens, same data, release builds. Updated November 2, 2026.

  • pyxpo Python, native views
  • Expo React Native, Hermes, New Architecture
  • Native Kotlin + Compose, Swift + SwiftUI
headline

Smaller and lighter than Expo.

Lower is better on every chart. Each number is the median of repeated runs, with apps measured in turn so they share the same conditions.

Android

Release APK size

pyxpo20.1 MB
Expo30.8 MB
Native2.9 MBbest
Android

Memory after launch

pyxpo53.5 MB
Expo106.6 MB
Native51.2 MBbest
Android

Cold start to content

pyxpo194 msbest
Expo230 ms
Native400 ms
Android

CPU time while scrolling the feed

pyxpo7.91 s
Expo9.27 s
Native6.91 sbest
iOS

App bundle size

pyxpo34.5 MB
Expo41.1 MB
Native1.7 MBbest
iOS

Memory after launch

pyxpo128.0 MB
Expo215.5 MB
Native123.0 MBbest
android

Android results

Android emulator sdk_gphone16k_arm64, Android 17 (API 37, arm64-v8a) on an Apple Silicon Mac. Medians of 15 cold starts, 10 warm starts, 10 pushes and 3 scroll runs per app.

Startup

Cold start to content

Process start until the feed list has mounted (the app logs a marker).

pyxpo194 msbest
Expo230 ms
Native400 ms

Cold start to first frame

TotalTime reported by `am start -W` after a force-stop.

pyxpo183 ms
Expo180 msbest
Native413 ms

Return from background

App in memory, brought back from the home screen.

pyxpo363 msbest
Expo487 ms
Native482 ms

Memory

Memory after launch

Total PSS 3 seconds after the feed appears.

pyxpo53.5 MB
Expo106.6 MB
Native51.2 MBbest

Memory after scrolling the feed

Total PSS after 30 flings through 1000 rows.

pyxpo62.9 MB
Expo190.8 MB
Native58.0 MBbest

Memory after scrolling the photo grid

Total PSS after 30 flings through 300 photos.

pyxpo99.1 MB
Expo166.6 MB
Native67.2 MBbest

Interaction

Open a detail screen

From an adb tap on a feed row until the detail screen logs that it has mounted. The time adb takes to send the tap is included for every app.

pyxpo6 msbest
Expo25 ms
Native39 ms

CPU time while scrolling the feed

User plus system CPU time of the app process during 30 flings.

pyxpo7.91 s
Expo9.27 s
Native6.91 sbest

CPU time while scrolling the grid

User plus system CPU time of the app process during 30 flings.

pyxpo11.57 s
Expo11.08 s
Native10.05 sbest

Size and code

Release APK size

Universal release APK with R8 (all four CPU types).

pyxpo20.1 MB
Expo30.8 MB
Native2.9 MBbest

Lines of app code

Non-blank lines in the screens and data module, without imports.

pyxpo142 linesbest
Expo159 lines
Native173 lines
All Android numbers with p90
MetricpyxpoExpoNative
Cold start to content194 msp90 317 ms230 msp90 266 ms400 msp90 484 ms
Cold start to first frame183 msp90 250 ms180 msp90 236 ms413 msp90 496 ms
Return from background363 msp90 460 ms487 msp90 545 ms482 msp90 529 ms
Memory after launch53.5 MBp90 53.5 MB106.6 MBp90 107.2 MB51.2 MBp90 55.3 MB
Memory after scrolling the feed62.9 MBp90 63.0 MB190.8 MBp90 192.8 MB58.0 MBp90 62.5 MB
Memory after scrolling the photo grid99.1 MBp90 106.4 MB166.6 MBp90 169.3 MB67.2 MBp90 69.9 MB
Open a detail screen6 msp90 7 ms25 msp90 27 ms39 msp90 49 ms
CPU time while scrolling the feed7.91 sp90 8.22 s9.27 sp90 9.77 s6.91 sp90 11.36 s
CPU time while scrolling the grid11.57 sp90 18.96 s11.08 sp90 11.15 s10.05 sp90 11.30 s
Release APK size20.1 MB30.8 MB2.9 MB
Lines of app code142 lines159 lines173 lines
ios

iOS results

iOS simulator iPhone 17, iOS 27.0, on an Apple Silicon Mac. Median of 10 cold launches per app, apps in turn.

Startup

Cold start to content

`simctl launch` until the feed list has mounted (the app logs a marker).

pyxpo167 msbest
Expo169 ms
Native170 ms

Memory

Memory after launch

Physical footprint 3 seconds after the feed appears.

pyxpo128.0 MB
Expo215.5 MB
Native123.0 MBbest

Size

App bundle size

Release .app for the simulator (arm64), uncompressed.

pyxpo34.5 MB
Expo41.1 MB
Native1.7 MBbest
All iOS numbers with p90
MetricpyxpoExpoNative
Cold start to content167 msp90 176 ms169 msp90 178 ms170 msp90 190 ms
Memory after launch128.0 MBp90 129.0 MB215.5 MBp90 225.0 MB123.0 MBp90 125.0 MB
App bundle size34.5 MB41.1 MB1.7 MB
honest

Where pyxpo is not first.

  • Android, cold start to first frame: pyxpo 183 ms, Expo 180 ms, Native 413 ms. pyxpo and Expo draw a splash screen first, so their first frame comes early.
  • Android, memory after launch: pyxpo 53.5 MB, Expo 106.6 MB, Native 51.2 MB.
  • Android, memory after scrolling the feed: pyxpo 62.9 MB, Expo 190.8 MB, Native 58.0 MB.
  • Android, memory after scrolling the photo grid: pyxpo 99.1 MB, Expo 166.6 MB, Native 67.2 MB. Measured in a later run (2026-11-02 05:18) after the pyxpo grid image fix; the other numbers are from the main run.
  • Android, cpu time while scrolling the feed: pyxpo 7.91 s, Expo 9.27 s, Native 6.91 s.
  • Android, cpu time while scrolling the grid: pyxpo 11.57 s, Expo 11.08 s, Native 10.05 s.
  • Android, release apk size: pyxpo 20.1 MB, Expo 30.8 MB, Native 2.9 MB.
  • iOS, memory after launch: pyxpo 128.0 MB, Expo 215.5 MB, Native 123.0 MB.
  • iOS, app bundle size: pyxpo 34.5 MB, Expo 41.1 MB, Native 1.7 MB.

These are emulator and simulator numbers. Real phones are slower in absolute terms; the order between the three builds is what to read here.

The native Android app has no baseline profile. Adding one would make its cold start faster.

method

How it was measured.

  • All three apps are release builds: R8 on Android, Release configuration on iOS. No debug flags, no dev servers.
  • Each run does the apps in turn (pyxpo, Expo, native, then again), so a slow moment on the machine hits all three, not one.
  • Cold start force-stops the app first. Content time runs from the process start to a log line the feed screen prints when it mounts. First-frame time is what `am start -W` reports, which starts from the intent, so the two numbers have different starting points.
  • Memory is the total PSS from `dumpsys meminfo` on Android and the physical footprint on iOS.
  • Scroll cost is the CPU time the app process used during 30 flings, read from /proc. Emulator frame timings were too noisy to publish, so frame-drop numbers will come from a real phone.
  • Every number is the median. The table under each platform also shows p90. Each run saves its raw results as JSON.

Versions

  • pyxpo0.1.0a26
  • Expo SDK58.0.22
  • React Native0.88.1 (New Architecture, Hermes)
  • React19.3.0
  • Jetpack Compose BOM2024.12.01
  • Kotlin2.0.21
  • Coil2.7.0
  • Xcode27.2
the app

What each build contains.

Five screens that cover what most apps do: a long list, an image grid with a full-screen viewer, a form, animations and a pushed detail screen.

Feed

A list of 1,000 rows, each with a thumbnail, a title and two lines of text. Tapping a row pushes a detail screen.

Grid

300 photos in three columns. Tapping one opens a full-screen viewer you can swipe through.

Form

Text inputs, a multi-line field, a switch and a submit button that shows an alert.

Anim

A spinning square, a spring button and a ball you can drag that springs back.

Detail

A large photo and long text in a scroll view, pushed on the stack.

Build your own pyxpo app