Paraglide JS

Compare translated DOM readiness and Brotli transfer for the same Vite 8 app: default and per-locale Paraglide JS, bundled i18next, and two HTTP-backend configurations.

Main findings

  • Per-locale Paraglide reaches translated DOM readiness sooner in 45/45 pairwise comparisons against i18next. Initial and journey transfer are smaller in 45/45 and 45/45 comparisons, respectively.
  • Default Paraglide has transfer tradeoffs: initial or journey bytes exceed an i18next configuration in 6/45 comparisons. All results remain visible below.

With ten locales, 200 messages used per route, and a 1,000-message catalog, per-locale Paraglide reaches readiness in 180 ms with 10.2 KiB initial transfer; route-based HTTP i18next takes 232 ms and 25.8 KiB. These are 3-run medians from one host and network profile, not universal rankings.

Interactive examples

Filter locale counts, message counts, and metrics. Complete scenario tables follow.

3-run medians; lower is better. Language changes reload the page.

5 locales · 50 messages used · 1,000 total messages

Initial translated DOM readiness (ms)
ImplementationMedian (ms)
Paraglide JS179.2178.7–182.9 ms range
Paraglide · per locale173.3173.1–173.5 ms range
i18next · bundled274.9271.0–278.2 ms range
i18next · HTTP catalog241.2237.6–246.1 ms range
i18next · HTTP routes218.2217.6–230.4 ms range

Translated text in the DOM, not paint or interaction readiness. Brotli transfer includes response headers.

Navigation and locale-switch timing
Median translated DOM update time by journey step (ms)
ImplementationCold visitNavigateSwitch locale (reload)Revisit
Paraglide JS179.252.363.13.3
Paraglide · per locale173.348.2152.349.4
i18next · bundled274.950.188.14.4
i18next · HTTP catalog241.250.9138.44.3
i18next · HTTP routes218.254.4117.955.3

Conditions, versions, and methodology

Translated DOM readiness

Navigation start until translated text is inserted into the DOM, including loading, initialization, translation, and DOM updates. This is not paint, LCP, INP, or general interaction readiness. Lower is better; downloadable data retains minimum, median, and maximum values.

LocalesUsed / routeCatalogParaglide JSParaglide · per localei18next bundledi18next HTTP catalogi18next HTTP routes
250200174 ms174 ms198 ms218 ms216 ms
550200180 ms173 ms213 ms217 ms216 ms
1050200187 ms175 ms235 ms217 ms215 ms
2501000178 ms175 ms229 ms240 ms220 ms
5501000179 ms173 ms275 ms241 ms218 ms
10501000188 ms177 ms365 ms243 ms221 ms
22001000184 ms179 ms233 ms245 ms226 ms
52001000196 ms181 ms280 ms245 ms228 ms
102001000222 ms180 ms363 ms252 ms232 ms
2504000176 ms175 ms308 ms266 ms231 ms
5504000179 ms176 ms498 ms267 ms239 ms
10504000187 ms174 ms831 ms262 ms233 ms
22004000185 ms180 ms317 ms279 ms242 ms
52004000198 ms178 ms503 ms275 ms241 ms
102004000223 ms180 ms823 ms277 ms238 ms

Initial transfer size

Chromium-measured Brotli responses, including response headers. KiB means 1,024 bytes; lower is better.

LocalesUsed / routeCatalogParaglide JSParaglide · per localei18next bundledi18next HTTP catalogi18next HTTP routes
2502008.6 KiB5.8 KiB25.2 KiB23.2 KiB21.3 KiB
55020013.0 KiB5.9 KiB37.2 KiB23.3 KiB21.3 KiB
105020022.1 KiB5.9 KiB58.5 KiB23.3 KiB21.3 KiB
25010008.6 KiB5.8 KiB49.3 KiB35.0 KiB24.9 KiB
550100013.0 KiB5.9 KiB97.1 KiB35.0 KiB24.9 KiB
1050100022.1 KiB5.9 KiB179.1 KiB35.1 KiB24.9 KiB
2200100016.6 KiB10.1 KiB50.3 KiB36.0 KiB25.8 KiB
5200100031.4 KiB10.2 KiB98.0 KiB36.0 KiB25.8 KiB
10200100060.1 KiB10.2 KiB180.0 KiB36.0 KiB25.8 KiB
25040008.6 KiB5.8 KiB130.3 KiB74.4 KiB34.2 KiB
550400013.0 KiB5.9 KiB289.4 KiB74.4 KiB34.2 KiB
1050400022.1 KiB5.9 KiB569.1 KiB74.4 KiB34.2 KiB
2200400016.6 KiB10.1 KiB131.3 KiB75.3 KiB35.1 KiB
5200400031.4 KiB10.2 KiB290.3 KiB75.4 KiB35.1 KiB
10200400060.1 KiB10.2 KiB570.1 KiB75.4 KiB35.1 KiB

Full journey transfer size

Total bytes across the journey below, including one document reload when changing language. Caches remain active within each journey.

LocalesUsed / routeCatalogParaglide JSParaglide · per localei18next bundledi18next HTTP catalogi18next HTTP routes
25020010.7 KiB14.4 KiB26.1 KiB29.3 KiB26.9 KiB
55020016.9 KiB14.3 KiB38.2 KiB29.1 KiB26.8 KiB
105020029.4 KiB14.9 KiB59.4 KiB29.4 KiB27.1 KiB
250100010.7 KiB14.4 KiB50.2 KiB54.6 KiB40.1 KiB
550100016.9 KiB14.3 KiB98.0 KiB53.6 KiB39.4 KiB
1050100029.4 KiB14.9 KiB180.0 KiB55.1 KiB40.2 KiB
2200100023.8 KiB29.2 KiB51.3 KiB55.7 KiB41.2 KiB
5200100047.2 KiB28.6 KiB99.1 KiB54.7 KiB40.5 KiB
10200100092.4 KiB29.7 KiB181.1 KiB56.2 KiB41.3 KiB
250400010.7 KiB14.4 KiB131.3 KiB138.2 KiB79.2 KiB
550400016.9 KiB14.3 KiB290.3 KiB135.5 KiB77.5 KiB
1050400029.4 KiB14.9 KiB570.0 KiB141.3 KiB79.3 KiB
2200400023.8 KiB29.2 KiB132.4 KiB139.3 KiB80.3 KiB
5200400047.2 KiB28.6 KiB291.4 KiB136.6 KiB78.6 KiB
10200400092.5 KiB29.7 KiB571.1 KiB142.4 KiB80.4 KiB

Methodology

Same working application

All five configurations render identical text, interpolation, plurals, dates, and five lazy routes with 20 shared messages. Distinct Cal.diy translations, source hashes, and MIT license are retained. Fixed-hash selection is independent of results; naturally identical labels remain.

The matrix covers 2/5/10 locales, 200/1,000/4,000 catalog messages, and 50/200 used messages per route. Combinations unable to supply five routes are excluded. Common/route namespaces partition the catalog; these are controlled boundaries, not Cal.diy's routes.

Selection targets 20% interpolation until eligible strings run out. Rich markup, nested translations, contextual/plural source keys, and incompatible placeholders are excluded. Supplemental plurals test counts 0, 1, 2, 3, 11, and 100. Dates use identical native Intl code.

Implementations

ImplementationTranslation loading
Paraglide JSMessage modules; unused messages removed, retained messages include every locale
Paraglide · per localeFixed-locale builds with message modules and static references
i18next bundledAll locales and namespaces bundled as compact objects
i18next HTTP catalogOfficial HTTP backend; complete active-locale catalog
i18next HTTP routesOfficial HTTP backend; active-locale common/route namespaces

Per-locale settings: experimentalPerLocaleBuild: true and outputStructure: "message-modules".

Both Paraglide variants use the v3 compiler in this repository at commit 2a01eb31001375cd4d1ae26a41a265df32c8340b; downloadable metadata records source and compiled hashes. Vite groups message modules into page/shared chunks, without per-message requests. Dynamic namespace indexing can retain additional messages. See the per-locale setup and framework constraints.

Page code and translations load concurrently. Fixed-locale graphs avoid startup locale setters. HTTP variants disable fallback languages and retain resource caching; finer namespaces can reduce unused data further.

Correctness before performance

All 75 configurations pass 233,750 string checks and 12,750 plural assertions across every locale/route. Timed journeys recheck text, interpolation, dates, plurals, and route/locale state. Errors, failed requests, or missing compression abort measurement. Requested-JavaScript checks verify route and locale isolation in all 15 per-locale configurations, using markers observable after navigation.

Browser journey and conditions

Each of 225 journeys starts with a fresh browser context: English route 0 → English route 1 → document navigation to the last configured locale on route 1 → revisit route 0. Every implementation reloads once. Preflight checks never warm measured contexts.

Trials run sequentially with rotated order: 40 ms latency, 10 Mbps down, 5 Mbps up, 4× CPU slowdown, Brotli quality 5. Vite's default minification/module preloading remain enabled; no custom initial-route hints are added.

3-run medians do not establish statistical significance across devices. Per-locale builds are experimental. This plain-Vite client-rendered fixture does not establish SSR/hydration behavior or TanStack Start/SvelteKit compatibility. Source maps are disabled; keep message-module maps private because they can contain inactive-locale branches.

Versions and data

Measured November 2, 2026. Pinned packages: Paraglide v3 main (unreleased), 2a01eb31, i18next 26.5.11, HTTP backend 4.0.6, Vite 8.3.5, Playwright 1.50.1. Host: darwin arm64, Apple M5 Pro, Node v24.22.1, Chromium 133.0.6943.16.

Reproduce and contribute

From the repository root:

pnpm install --frozen-lockfile
pnpm --filter @inlang/paraglide-js-benchmark exec playwright install --only-shell chromium
pnpm --filter @inlang/paraglide-js-benchmark bench

Use SMOKE=1 for one scenario/repetition without replacing published results. Run pnpm --filter @inlang/paraglide-js-benchmark publish-results --saved to regenerate this page from saved data. Results render as HTML; JavaScript adds filtering.