Old architecture vs. new architecturePart 10 of 14
Hermes and Hermes V1
A JS engine built for startup time and memory, not peak speed
IntermediateVerified on React Native 0.88Updated 6 December 2026
Read first: Build time vs. run time
The big idea#
Every JavaScript engine parses, compiles, executes and collects garbage. Browser engines do the first two on the device at every launch and rely on a JIT to get fast later. On a phone that's a poor fit: parsing slows startup, a JIT needs memory and warm-up, and iOS doesn't allow normal apps to JIT at all. Hermes is designed around startup time and memory instead.
Concepts#
How Hermes differs#
Browser engines vs. Hermes
| Browser engines | Hermes | |
|---|---|---|
| Parse + compile | On the device, at launch | On the build machine (hermesc) |
| Execute | Interpreter + JIT | Interpreter only, by design |
| Loading code | Read and parse the whole bundle | Memory-map bytecode, load pages on use |
| Garbage collection | Tuned for large heaps | Hades: mostly concurrent, short pauses |
What bytecode looks like#
function add(a, b) { return a + b; }; simplified output of hermesc -dump-bytecode
Function<add>(3 params, 2 registers):
LoadParam r1, 1 ; a
LoadParam r0, 2 ; b
Add r0, r1, r0
Ret r0A .hbc file is essentially a function table, a string table (every literal, stored once) and these instruction lists. At run time nothing is parsed: Hermes jumps to a function's instructions and interprets them.
Hermes V1#
- It was an experimental opt-in in 0.82 and became the default in 0.84, on both iOS and Android.
- Described as significant improvements to both the compiler and the VM, with faster execution and lower memory use. No benchmark numbers were published.
- There's no migration: apps already on Hermes switch automatically, and the build pipeline (Metro →
hermesc→.hbc) is unchanged. - Opting out is meant only for engine bugs: pin the legacy
hermes-compilerpackage with a package-manager override; on iOS install pods withRCT_HERMES_V1_ENABLED=0andRCT_USE_PREBUILT_RNCORE=0; on Android sethermesV1Enabled=falseingradle.propertiesand build React Native from source. - 0.88 ships Hermes
260318099.0.4.
const isHermes = typeof HermesInternal !== 'undefined';
const version = HermesInternal?.getRuntimeProperties?.()['OSS Release Version'];No JIT, and Static Hermes#
Even V1 has no JIT and no compilation of JS to native code. Static Hermes is the long-term idea: compile typed JavaScript (TypeScript or Flow with trustworthy types) ahead of time into machine code, giving near-native speed without a JIT, which also works on iOS. It hasn't shipped in React Native, so treat it as future work.
Myths vs reality#
Myth
Hermes was introduced as an option in 0.64
Reality: it arrived on Android in 0.60 (2019), on iOS in 0.64, and became the default in 0.70.
Myth
Bytecode is executed directly, without being interpreted
Reality: bytecode is interpreted. Parsing and compiling are what's skipped.
Myth
Hermes handles the app's logic and updates the UI using Fabric
Reality: Hermes only runs JavaScript. React (running inside Hermes) decides what the UI should be; Fabric (C++) renders it. Hermes doesn't know Fabric exists.
Myth
Hermes makes the bundle smaller
Reality: the app-size win came mostly from the engine itself being much smaller than the JavaScriptCore library Android apps used to ship. Bytecode isn't magically smaller than minified JS.
Timeline#
Hermes over time
- 0.602019-07
Hermes launches on Android, on the old architecture
- 0.642021-03
Hermes available on iOS
- 0.702022-09
Hermes becomes the default engine
- 0.822025-10
Hermes V1 available as an experimental opt-in
- 0.842026-02
Hermes V1 becomes the default
In practice#
- Startup cost is the code that runs at startup. Bytecode is memory-mapped, so unused code costs almost nothing; heavy top-level work, eager imports of large screens and setup at module load are what slow launch. Lazy imports help.
- No JIT means hot loops run at interpreter speed, so put heavy number crunching in native or C++ code.
- Check Hermes support for web APIs. Hermes has its own
Intlimplementation; some features (for example full plural rules for every locale) may need a polyfill. - React Native DevTools connects to Hermes directly, and CPU profiles recorded there reflect the real on-device engine.
In one sentence
Hermes moves parsing and compiling to build time, then memory-maps the bytecode and interprets it without a JIT, trading peak speed for fast startup and low memory, and Hermes V1 has been the default since 0.84 while ahead-of-time compilation to native code (Static Hermes) hasn't shipped.