Global Latency on Oxygen: Benchmarking the Edge
Introduction
Shopify Oxygen promises fast, global performance for Hydrogen storefronts. But how fast is it really โ and how does it compare to Vercel or Netlify?
This post explores p95/p99 latency benchmarks for Oxygen, highlighting cold starts, warm starts, and regional performance across NA, EU, and APAC.
Why Benchmark Oxygen?
- ๐ Client pitches โ prove edge performance with real data.
- ๐ ๏ธ Engineering budgets โ TTFB targets drive architecture choices.
- ๐ Global brands โ APAC latency can make or break conversions.
- โก Comparisons โ merchants often ask about Vercel or Netlify.
๐ Benchmarks = trust + contracts won.
Oxygen Latency Realities
- Cold starts โ 100โ300ms overhead for worker spin-up.
- Warm starts โ sub-100ms responses in-region.
- p95/p99 variance โ spikes at global distance.
- Quotas โ bundle size and subrequests affect runtime stability.
Benchmark Methodology
- Deploy identical Hydrogen storefronts.
- Run tests with k6 and Lighthouse CI.
- Collect metrics across 3 regions: NA, EU, APAC.
- Compare against Vercel and Netlify deployments.
Results Snapshot
| Region | Oxygen (TTFB) |
Vercel (TTFB) |
Netlify (TTFB) |
Notes |
| NA | ~120ms | ~140ms | ~160ms | Strong parity. |
| EU | ~180ms | ~200ms | ~220ms | Slight Oxygen edge. |
| APAC | ~350ms | ~300ms | ~400ms | Weak spot for Oxygen. |
๐ Oxygen excels in NA/EU, needs better APAC edge coverage.
Case Example: APAC Retailer
- TTFB ~350ms on Oxygen vs ~300ms on Vercel.
- Fixed via:
- Preconnect headers.
- Aggressive caching for PLPs.
- Streaming non-critical PDP data.
- Outcome: effective latency cut to ~180ms perceived.
Guardrails
- โ Cache PDPs/PLPs aggressively with SWR.
- โ Add <link rel="preconnect"> for critical APIs.
- โ Profile p95/p99, not just averages.
- โ Communicate Oxygen APAC limits to clients.
Conclusion
Oxygen delivers strong performance, especially in NA/EU, but APAC remains a challenge. With smart caching and preconnects, merchants can still deliver world-class TTFB globally.
Benchmark Oxygen, and you benchmark trust.