Skip to main content

Benchmarks

We moved three apps from react-native-web 0.21.4 to @rootnative/web 0.0.8, and measured each app on both runtimes in November 2026. This page gives every result, also the results that are worse. Your app can differ, so measure it too: see Measure your own app.

Summary​

What you gain:

  • Less script at load. Script time at load is 8–20 % lower in all three apps.
  • Smaller server HTML. With static output, the HTML is 31–57 % smaller after gzip, and it has about half the CSS rules. A style is a shared class, not a style attribute: one home page has 1 style attribute in place of 220.
  • Faster interactions where JavaScript runs. A menu opens 24 % faster, and a dialog 26 % faster. Typing in a text field runs 42 % less script, and a scroll runs 15–21 % less.
  • Lighthouse. On the static site, Total Blocking Time is 18–52 % lower, and the performance score is higher in 17 of 19 pairs of runs.
  • A little less JavaScript. The bundle is 2–4 % smaller after gzip. Most of a bundle is React, the router, and other libraries, and the runtime doesn't change those.
  • The same page. On the static site, the home page and the 404 page are the same pixel for pixel. The showcase page differs only where the browser scales the screenshots (0.03 % of the pixels). Each page has the same tab stops, links, and headings.

What's worse:

  • Style work in some interactions. Style recalculation is 90 % higher for a menu and 54 % higher for button presses in the component gallery. It's 24 % higher for a scroll on one phone-sized page. Without the CPU throttle, that's a few milliseconds for each interaction, and the script time of the same interactions is the same or lower. The cause isn't known yet.
  • Style work at load on one page. The text field page of the gallery has 74 % more style recalculation at load. The other 6 pages have 11–67 % less.
  • Layout time at load is 2 % higher on the dashboard, and 7 % higher on one phone-sized page of the static site. The gallery has less layout time on 6 of 7 pages.
  • Images in the server HTML come first. The browser requests them before the first paint, and the first paint comes 14 ms later on one phone-sized page. On the simulated slow 4G of Lighthouse, Time to Interactive came 0.6 s later on the same page. In exchange, LCP is 7–14 % sooner in the other three page groups. For an image below the fold, use loading="lazy" (see Image): the browser then loads it later, and React's server render doesn't preload it.

Not measured:

  • Firefox and Safari. Each number comes from Chromium.
  • A real phone and a real network. The phone-sized numbers come from a 390 px window with a CPU throttle.
  • A screen reader. The checks count roles, links, and tab stops.

The apps​

AppOutputPagesJavaScript, gzip, on react-native-web
Static siteExpo Router, web.output: 'static'3653 KB
DashboardExpo, web.output: 'single', no server rendering1402 KB
Component galleryExpo Router, web.output: 'static'48, 7 measured712 KB

Each app uses Reanimated and a component library on top of React Native. Each app moved through @rootnative/web-expo: see Expo.

How we measured​

  • Two exports of each app from the same commit: one on react-native-web 0.21.4, one on @rootnative/web 0.0.8. Only the runtime differs.
  • Both exports load from a local server in Chromium 156, headless, with a new browser context for each run and the cache off.
  • The CPU is throttled 4× on an Intel Core i5-8257U (4 cores). The window is 1280 × 800. The static site also runs at 390 × 844.
  • On the static site and the dashboard, requests to other hosts come from a cache or from fixed answers, so the network doesn't count.
  • 10 runs of each runtime, in turns. The tables give the median.
  • On the static site, "better" and "worse" come from a sign test on the 10 pairs of runs: one runtime is lower in 9 pairs or more (p < 0.05). For the other two apps, the tables give the medians only.
  • Lighthouse 13.5 on the static site: 5 runs of each runtime, with the mobile and the desktop preset.

Static site​

Three pages: a home page, a showcase page with app screenshots, and a 404 page. The move changed two files: package.json, and a new metro.config.js of 4 lines.

Size​

Measurereact-native-web@rootnative/webChange
JavaScript, all files, gzip653 KB637 KB−2.4 %
Modules in the client bundle1,3011,223−78
Server HTML, gzip, home page10.8 KB7.5 KB−31 %
Server HTML, gzip, showcase page9.5 KB5.9 KB−38 %
Server HTML, gzip, 404 page7.1 KB3.0 KB−57 %
CSS rules in the server HTML, home page365192−47 %
CSS rules in the server HTML, showcase365155−58 %
style attributes, home page2201
<img> elements in the server HTML, home08

react-native-web renders an image as a CSS background after the JavaScript runs. @rootnative/web renders an <img> in the server HTML.

Load and interaction​

Four groups: the home page and the showcase page, at 390 × 844 and at 1280 × 800. Each run loads the page, then scrolls to the end in 30 wheel steps.

MeasureChangeResult
DOMContentLoaded−5 to −13 %Better in 4 groups
Script time at load−8 to −16 %Better in 3 groups, no clear change in 1
All main-thread work at load−3 to −12 %Better in 3 groups, no clear change in 1
Style recalculation at load−6 to −17 %Better in 1 group, no clear change in 3
LCP−7 to −14 % in 3 groups, +7 % on the phone home pageBetter in 1 group, worse in 1, no clear change in 2
Script time in the scroll−15 to −21 %Better in 4 groups
Worst frame in the scroll83 → 67 ms on the phone home pageBetter in 1 group, no clear change in 3
FCP192 → 206 ms (+7 %) on the phone home pageWorse in 1 group, no clear change in 3
Layout at load111 → 119 ms (+7 %) on the phone home pageWorse in 1 group, no clear change in 3
Style recalculation in the scroll52 → 65 ms (+24 %) on the phone home pageWorse in 1 group, no clear change in 3
Total Blocking Time, CLSNo clear change

On the phone home page, the largest element is the heading, so LCP is the same as FCP there.

The JavaScript heap right after the load is 15 % lower on the showcase page, and 8–11 % higher on the home page. That number depends on when the garbage collector runs. After a forced garbage collection, @rootnative/web uses about 5–8 % less on each page, and neither runtime grows over 45 idle seconds.

Lighthouse​

Medians of 5 runs, react-native-web → @rootnative/web:

MeasureMobile, homeMobile, showcaseDesktop, homeDesktop, showcase
Performance score74 → 8249 → 4663 → 7567 → 70
Accessibility score100 → 10096 → 100100 → 10096 → 100
Total Blocking Time1,342 → 647 ms1,171 → 841 ms346 → 182 ms170 → 139 ms
Speed Index2,876 → 2,584 ms2,355 → 1,414 ms832 → 728 ms536 → 355 ms
FCP1,429 → 1,448 ms1,368 → 1,414 ms340 → 356 ms338 → 346 ms
Time to Interactive7,403 → 8,030 ms13,632 → 13,894 ms2,117 → 2,081 ms2,728 → 2,688 ms

Over the 20 pairs of runs:

  • Total Blocking Time and the main-thread work are lower in all 20 pairs.
  • The performance score is higher in 17 of 19 pairs. On the mobile showcase page, the median is lower, but the runs spread (react-native-web 42–60, @rootnative/web 46–53).
  • FCP is later in 15 of 20 pairs.
  • Time to Interactive is later in 5 of 5 pairs on the mobile home page, with no clear change in the other groups. The probable cause: the 8 images of the server HTML (160 KB) share the simulated slow network with the JavaScript.
  • The accessibility score of the showcase page is 100 on @rootnative/web. react-native-web renders an image that fails to load as a <div aria-label> with no role, and the audit flags it.

Dashboard​

One page with a table, a menu, and a dialog. The page renders in the browser, with no server HTML. An open time runs from the input event to the first frame with the menu or the dialog.

Measurereact-native-web@rootnative/webChange
JavaScript, gzip402 KB387 KB−3.7 %
CSS rules after the load338281−17 %
FCP960 ms868 ms−10 %
LCP1,624 ms1,440 ms−11 %
Total Blocking Time294 ms226 ms−23 %
Script time to a settled load1,416 ms1,221 ms−14 %
Layout time at load89 ms91 ms+2 %
Style recalculation at load32 ms33 ms+3 %
Menu, open74 ms56 ms−24 %
Dialog, open255 ms189 ms−26 %
Longest frame as the dialog opens233 ms183 ms−21 %
JavaScript heap after the load10.76 MB10.20 MB−5 %
JavaScript heap after 20 menu cycles13.04 MB12.22 MB−6 %

To close the menu or the dialog takes about the same time on both runtimes (+2 % and −5 %). The exit animation of the component library sets that time.

Seven pages of the gallery, at 1280 × 800. Each page gets one interaction after the load. The worse results of this app also showed in a second set of 10 runs.

Size​

Measurereact-native-web@rootnative/webChange
JavaScript, gzip712 KB698 KB−2 %
Server HTML of the 48 pages, gzip538 KB306 KB−43 %
style attributes, home page52518−97 %
CSS rules after the load, 7 pages−23 to −58 %

Load​

PageScript timeAll main-thread workStyle recalculationTotal Blocking TimeFCP
Home−20 %−20 %−35 %−19 %+3 %
Button−15 %−15 %−67 %−4 %−3 %
List−11 %−13 %−60 %−2 %−1 %
Text field−13 %−11 %+74 %−2 %−4 %
Tabs−16 %−14 %−43 %−4 %−1 %
Menu−9 %−11 %−62 %+1 %−10 %
Carousel−12 %−11 %−11 %−1 %−3 %

Interactions​

PageInteractionScript timeStyle recalculationLongest input event
HomeScroll, 30 wheel steps63 → 57 ms (−9 %)9.6 → 9.2 ms20 → 24 ms
Button12 presses, 120 ms apart455 → 453 ms72 → 111 ms (+54 %)216 → 160 ms
ListScroll, 30 wheel steps28 → 21 ms (−25 %)0 → 0 ms80 → 88 ms
Text fieldType 33 characters1,773 → 1,036 ms (−42 %)2.3 → 3.1 ms88 → 64 ms
TabsSelect up to 8 tabs366 → 332 ms (−9 %)37 → 34 ms168 → 160 ms
MenuOpen and close, 5 times533 → 483 ms (−9 %)55 → 105 ms (+90 %)176 → 172 ms
CarouselScroll, 30 wheel steps39 → 31 ms (−20 %)0 → 0 ms16 → 16 ms

Measure your own app​

  1. Export your app two times from one commit: one with react-native-web, one with @rootnative/web.
  2. Serve both exports from a local server.
  3. Load them in turns in the same browser, with the cache off and a CPU throttle.
  4. Take 10 runs or more of each runtime.
  5. Compare the medians, and count how often each runtime wins a pair of runs.