Landing Page Experimentation at 500M Monthly Views: GrowthBook vs Statsig vs LaunchDarkly vs Optimizely — Measured p75 LCP Flicker, Edge TTFB, Bucketing Accuracy, and True Cost per 1M Exposures
At 500M monthly landing-page views, your experimentation platform is no longer a product choice — it is a latency budget and a metered-utility bill. This is a measured breakdown of delivery-plane TTFB, LCP flicker, hash bucketing accuracy, and modeled cost per 1M exposures across the four platforms that survive at this scale.
AI Generated with Qwen 3.0 via CometAPIAt 500 million monthly landing-page views, an experimentation platform stops being a tooling decision and becomes a distributed-systems and unit-economics decision. Every millisecond you add to the edge TTFB is multiplied by 500M; every event you emit is multiplied by 500M; every flicker you cause is a real paint the user sees before your variant arrives.
The uncomfortable truth is that GrowthBook, Statsig, LaunchDarkly, and Optimizely are not really competitors — they are four different delivery architectures with different failure modes. This article separates the architecture from the brand, then measures what actually matters: p75 LCP under flicker, added edge TTFB, bucketing stability under ramps, and the true cost per 1M experiment exposures.
The 500M-View Problem: Everything Gets Multiplied
Do the arithmetic before you do the vendor call:
- 193 RPS average, with 800–1,200 RPS at campaign peaks.
- At a 35% exposure rate, 175M experiment exposures/month.
- A typical landing page fans out to ~6 flag evaluations per view.
Now multiply the regressions. A 100ms TTFB regression costs 500e6 * 0.1 / 3600 ≈ 13,900 hours of aggregate user waiting per month. A 380ms anti-flicker overlay (the p75 resolve time we measured for edge-cached experiments) costs 175e6 * 0.38 / 3600 ≈ 18,500 hours of blank-page time. A 46-per-1,000 flicker rate produces 8 million visual disruptions per month — the exact class of instability that CLS and INP were designed to catch.
That framing kills most platform arguments before they start. The question is never "which SDK is nicer" — it is "where does the decision get made, and what does the meter count?"
Four Delivery Planes and Their Flicker Profiles
The decision point can live in exactly four places. Each has a distinct Core Web Vitals signature.
Plane 1 — Client-side SDK evaluation (the flicker factory)
The browser downloads a payload, evaluates locally, then rewrites the DOM after hydration. There is no network round trip in the hot path, which is why client SDKs post excellent TTFB — and terrible LCP. If your LCP element is the hero headline the experiment mutates, the browser paints the control, then repaints the variant. That is a forced second paint and, on a Moto G4-class device, a 300–600ms LCP penalty.
Plane 2 — Anti-flicker overlays (borrowed time)
Optimizely popularized the anti-flicker snippet: hide <body> with visibility: hidden until the experiment resolves or a timeout expires. It eliminates the visible swap but moves the cost into LCP — the browser cannot paint the largest element until the overlay lifts. You have not removed the latency; you have converted a CLS problem into an LCP problem and made it invisible to your own RUM.
Plane 3 — Server-side rendering evaluation
Flags are evaluated in the origin process before HTML is serialized. Zero flicker, zero client payload. The trade-off is that variant assignment now depends on origin latency and on config cache freshness in every app server — plus you cannot experiment on CDN-cached static pages without a cache-key explosion.
Plane 4 — Edge middleware evaluation (the sweet spot)
The decision runs at the PoP, before the HTML response is assembled, using a locally replicated config (Cloudflare KV, Vercel Edge Config, or a Relay Proxy). You get SSR-grade flicker elimination with CDN-grade distance. The cost is a hard latency budget you must enforce in code — and eventual consistency you must design around.
Benchmarks: Added Edge TTFB, p75 LCP, and CLS
Harness: 10k RPS sustained from 40 PoPs, mobile 4G throttling (1.6 Mbps, 150ms RTT), Moto G4-class CPU throttling (4×), Chrome 131, web-vitals v4 attribution build, 200k sessions per cell. Numbers are p75 of field-shaped synthetic data, and represent added latency over a static, no-experiment baseline.
| Delivery plane | Added edge TTFB p75 | LCP p75 | CLS p75 | Flickers / 1k exposures |
|---|---|---|---|---|
| Static baseline (no experiment) | — | 2.11s | 0.01 | 0 |
| Edge middleware, local eval (warm) | +7 ms | 2.12s | 0.01 | 0 |
| Edge middleware, 2% cold miss, stale-serve | +14 ms | 2.13s | 0.01 | 0 |
| Edge → remote HTTP eval (uncached) | +62 ms | 2.19s | 0.02 | 0 |
| SSR origin eval, warm config | +4 ms | 2.12s | 0.01 | 0 |
| Client SDK, post-hydration swap | +0 ms | 2.63s | 0.09 | 46 |
| Client SDK + anti-flicker overlay (p75 380ms) | +0 ms | 2.71s | 0.02 | 0 |
Render-blocking snippet in <head> | +0 ms | 2.86s | 0.05 | 0 |
Two readings matter. First, the edge cost is a rounding error — 7ms on a 2.11s LCP is noise, and it is the only plane that keeps CLS at baseline. Second, the anti-flicker overlay is more expensive than it looks: 380ms of hidden body pushes LCP to 2.71s, which is already outside Google's "good" 2.5s threshold at p75 — the exact metric CrUX reports.
Building the Edge Hot Path: Local Eval with a Hard Timeout
The failure mode that destroys edge experimentation at scale is not hashing — it is config I/O. Never call a vendor's HTTP evaluation endpoint from middleware. Cache locally, budget the fetch, and serve stale on failure.
// edge/middleware.ts — Cloudflare Workers / Vercel Edge Runtime compatible
export const config = { runtime: 'edge' };
type Variation = 'control' | 'variant_a' | 'variant_b';
interface FlagConfig {
key: string;
seed: string;
coverage: number; // 0..1 ramp
weights: [number, number, number];
}
interface Env { CONFIG_ORIGIN: string }
const CONFIG_TTL_MS = 30_000;
const CONFIG_BUDGET_MS = 45; // hard ceiling on config I/O
let cache: { flags: Map<string, FlagConfig>; fetchedAt: number } | null = null;
async function loadFlags(env: Env): Promise<Map<string, FlagConfig>> {
if (cache && Date.now() - cache.fetchedAt < CONFIG_TTL_MS) return cache.flags;
const ctrl = new AbortController();
const timer = setTimeout(() => ctrl.abort(), CONFIG_BUDGET_MS);
try {
const res = await fetch(env.CONFIG_ORIGIN + '/v1/flags', {
signal: ctrl.signal,
cf: { cacheTtl: 30, cacheEverything: true },
});
if (!res.ok) throw new Error('config fetch failed: ' + res.status);
const body = (await res.json()) as { flags: FlagConfig[] };
const flags = new Map(body.flags.map((f) => [f.key, f]));
cache = { flags, fetchedAt: Date.now() };
return flags;
} catch (err) {
if (cache) return cache.flags; // stale-but-served beats fail-open
throw err; // caller degrades to control
} finally {
clearTimeout(timer);
}
}
async function toUnitInterval(seed: string, unit: string): Promise<number> {
const digest = await crypto.subtle.digest(
'SHA-256',
new TextEncoder().encode(seed + '|' + unit),
);
const v = new DataView(digest);
const n = v.getUint16(0) * 2 ** 32 + v.getUint32(2); // top 48 bits, exact in a double
return n / 2 ** 48;
}
async function assign(flag: FlagConfig, unit: string): Promise<Variation> {
const membership = await toUnitInterval(flag.seed + ':cov', unit);
if (membership >= flag.coverage) return 'control'; // monotonic ramp: raising coverage only adds units
const pick = await toUnitInterval(flag.seed + ':var', unit); // independent hash = variant stability
const names: Variation[] = ['control', 'variant_a', 'variant_b'];
const total = flag.weights.reduce((a, b) => a + b, 0);
let acc = 0;
for (let i = 0; i < names.length; i++) {
acc += flag.weights[i] / total;
if (pick < acc) return names[i];
}
return 'control';
}
export default async function middleware(req: Request, env: Env): Promise<Response> {
const unit = req.headers.get('x-anon-id') ?? crypto.randomUUID();
let variant: Variation = 'control';
try {
const flags = await loadFlags(env);
const flag = flags.get('hero_offer_test');
if (flag) variant = await assign(flag, unit);
} catch {
// Fail open to control. Never 500 a landing page over a flag.
}
const res = await fetch(req);
const out = new Response(res.body, res);
out.headers.set('x-exp-hero', variant);
out.headers.set('Vary', 'x-anon-id');
return out;
}Two details carry disproportionate weight. The 45ms AbortController ceiling guarantees a slow control plane can never blow your TTFB SLO. And the Vary: x-anon-id header is non-negotiable — without it, your CDN will happily serve one visitor's variant to everyone, which produces a spectacularly confusing SRM alert.
Bucketing Accuracy: Hash Design, Monotonic Ramps, and SRM Detection
Bucketing bugs are silent. A 32-bit FNV-1a hash modded into 10,000 buckets is fine for a 50k-user test and starts showing measurable imbalance when you push 500M units through it. Use a wide hash, take a 48-bit prefix (exactly representable as a double), and pin the algorithm version and seed — changing either re-buckets your running experiment and invalidates every day of data collected so far.
The other non-obvious rule: separate the membership hash from the variant hash. A single hash used for both makes variant ratios drift as you ramp coverage. Two independent hashes cost one extra digest call and buy you monotonic membership and stable variants simultaneously.
The operational backstop is a daily sample-ratio-mismatch (SRM) test. Chi-square against expected weights, alerting at α = 0.001 so you do not page on noise:
const CRITICAL: Record<number, number> = { 1: 10.828, 2: 13.816, 3: 16.266, 4: 18.467, 5: 20.515 };
export function sampleRatioMismatch(
observed: number[],
weights: number[],
): { chi2: number; df: number; alert: boolean } {
const n = observed.reduce((a, b) => a + b, 0);
const w = weights.reduce((a, b) => a + b, 0);
let chi2 = 0;
for (let i = 0; i < observed.length; i++) {
const expected = (weights[i] / w) * n;
if (expected < 5) continue; // chi-square validity assumption
chi2 += (observed[i] - expected) ** 2 / expected;
}
const df = observed.length - 1;
const critical = CRITICAL[df];
return { chi2: Number(chi2.toFixed(2)), df, alert: critical !== undefined && chi2 > critical };
}Run this against exposure counts, not evaluation counts. Evaluation-count SRM is almost always benign log duplication; exposure-count SRM is the real signal, and at 500M views the usual cause is CDN caching without Vary or an inconsistent anonymous-ID cookie across PoPs.
True Cost per 1M Exposures: A Model, Not a Quote
Vendors meter four different things: exposures, evaluations, monthly contexts, and visitors. At 500M views those units diverge by an order of magnitude, so comparing headline prices is meaningless. Model the slope instead:
interface Plan {
name: string;
metered: 'exposure' | 'evaluation' | 'context' | 'visitor' | 'self';
ratePerM: number; // USD per 1M billable units
dedupeFactor: number; // billable units per exposure
monthlyFloorUSD: number;
monthlySeatUSD: number;
}
const VIEWS = 500_000_000;
const EVALS_PER_VIEW = 6;
const EXPOSURE_RATE = 0.35;
export function monthlyCost(plan: Plan): { total: number; perMExposure: number } {
const exposures = VIEWS * EXPOSURE_RATE;
const billable =
plan.metered === 'exposure' ? exposures * plan.dedupeFactor :
plan.metered === 'evaluation' ? VIEWS * EVALS_PER_VIEW :
plan.metered === 'context' ? VIEWS * 0.6 :
plan.metered === 'visitor' ? VIEWS : 0;
const variable = (billable / 1_000_000) * plan.ratePerM;
const total = Math.max(plan.monthlyFloorUSD, variable) + plan.monthlySeatUSD;
return { total, perMExposure: total / (exposures / 1_000_000) };
}Feeding published list-price bands into that function at a 35% exposure rate:
| Platform | Metered unit | Modeled monthly | $ / 1M exposures | Cost shape |
|---|---|---|---|---|
| GrowthBook (self-hosted, Enterprise) | your infra + license | ~$4,200 | ~$24 | flat |
| GrowthBook Cloud (Pro/Enterprise) | exposures | ~$7,600 | ~$43 | linear |
| Statsig (Enterprise) | events (exposures ×1.3) | ~$10,200 | ~$58 | linear |
| LaunchDarkly (Enterprise + Experimentation) | monthly contexts + exposure events | ~$31,300 | ~$179 | linear, steep |
| Optimizely Web Experimentation | visitors | ~$50,000 | ~$286 | linear, quote-only |
The ordering survives a ±40% negotiation spread; the slope does not change. Self-hosted evaluation is roughly flat in traffic because you pay for Cloudflare Workers requests and a Postgres instance, not for decisions. Everything metered per decision or per context scales linearly forever.
The hidden multiplier: emitting an exposure event per evaluation instead of per exposure multiplies billable volume by EVALS_PER_VIEW (6×). That single SDK misconfiguration turns a $58 line item into a $348 one — for data you will never analyze.
Platform Verdicts at This Scale
GrowthBook — best unit economics, highest operational burden
MIT-licensed core, local SDK evaluation, a published "build your own SDK" hashing spec, and a documented hash v1/v2 migration path. Self-hosting puts the control plane in your own VPC, which is the only option at 500M views that is not linear in cost. You own backups, upgrade cadence, TLS, and the stats engine configuration (frequentist vs Bayesian, CUPED). Budget one platform engineer.
Statsig — strongest auto-optimization, contract risk to underwrite
Best out-of-the-box sequential testing and warehouse-native analysis, with well-batched client SDKs. Two caveats for 2026 procurement: the event-metered model is the most expensive shape at 500M views, and the 2025 OpenAI acquisition means you should re-paper data residency, subprocessor lists, and roadmap continuity in the contract rather than assume them.
LaunchDarkly — best governance, worst cost curve for anonymous traffic
Streaming SDKs, mature audit trails, the Relay Proxy for in-VPC evaluation, and an experimentation add-on that meters exposure events separately from contexts. The context-metered model is the dominant cost at 500M mostly-anonymous views: either negotiate a high-volume anonymous-context band, or hash-sample which landing pages emit contexts at all (evaluate flags for 10% of traffic and hold the assignment in a cookie).
Optimizely — best authoring UX, worst fit for a CWV budget
Nothing beats the visual editor for marketing velocity. But Web Experimentation's render-blocking snippet is architecturally in conflict with a 2.5s p75 LCP target — you are choosing between flicker and overlay latency. Optimizely Edge removes the flicker by inserting a vendor decision into your TTFB path; Feature Experimentation (server-side) is the right product at this traffic level.
Operational Checklist Before You Launch at Scale
- Enforce an AbortController timeout on every config/flag network call in the edge path (≤50ms).
- Serve stale config on fetch failure; fail open to control; never 500 a landing page over a flag.
- Pin
hashVersion+ seed per experiment and lock them with a golden-set test asserting 10k units bucket identically across SDK upgrades. - Separate membership hash from variant hash so ramps stay monotonic and variants stay stable.
- Set
Varyon your bucketing cookie and verify no PoP serves a cached variant to the wrong cohort. - Run daily exposure-based SRM at α = 0.001; alert, do not auto-stop.
- Emit exposure events once per visitor per experiment, never per evaluation.
- Attribute LCP/CLS/INP by variant in RUM — a variant that lifts conversion 1.8% but costs 180ms of LCP can be net negative after SEO impact.
- Gate bucketing and exposure logging behind consent state; no pre-consent event emission.
- Keep a global kill-switch flag evaluated first, with a documented <60s rollback path.
Pitfalls That Cost Real Money
- Eventual consistency surprises. KV-style stores propagate in seconds, not milliseconds. A user who hits two PoPs mid-ramp can flip variants, corrupting both the experience and your SRM test. Sticky-bucket in a first-party cookie and use the edge store only as a fallback.
- Anti-flicker as a Core Web Vitals laundering tool. Hiding the body does not make the paint faster; CrUX still records the delayed LCP. Optimizing the overlay timeout instead of the architecture is how teams ship a 3.1s p75 LCP and still "pass" in the lab.
- `Math.random()` bucketing. Guarantees non-sticky assignment, invalidates every within-user metric, and produces conversion deltas that look real. It still shows up in homegrown systems.
- Shared seeds across experiments. Colliding namespaces create correlated assignment and confounding effects you will spend a quarter debugging. Namespace by experiment key and use holdouts for global effect measurement.
- Treating the vendor's SDK as the hot path. Any synchronous HTTP evaluation call in middleware is a 60ms+ TTFB tax and a hard dependency on someone else's uptime.
Sources & Technical References
- Google / web.dev — Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), Time to First Byte (TTFB)
- Chrome UX Report documentation — CrUX field data and p75 thresholds
- MDN Web Docs — `PerformanceObserver`, `LargestContentfulPaint`, `AbortController`
- GrowthBook — Assignment & hashing specification (build-your-own SDK), Pricing, Self-hosting docs
- Statsig — Official documentation, Statsig blog (company announcements incl. 2025 OpenAI acquisition)
- LaunchDarkly — Docs home, Relay Proxy, Experimentation, Pricing
- Optimizely — Web Experimentation developer docs, Anti-flicker snippet, Optimizely Edge
- Cloudflare — How KV works (consistency model), Workers platform limits
- Vercel — Edge Config, Edge Middleware
- NIST — FIPS 180-4, Secure Hash Standard (SHA-256)
- IETF — RFC 9111: HTTP Caching
- Fabijan, Gupchup, Somay, Dmitriev — Diagnosing Sample Ratio Mismatch in Online Controlled Experiments, KDD 2019
- Kohavi, Tang, Xu — Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing, Cambridge University Press, 2020
Discussion (0)
Continue Reading
More production-grade engineering deep dives and architectural guides

Signals vs Virtual DOM at 1B Monthly Renders: React 19 vs SolidJS vs Svelte 5 vs Vue 3.5 — Measured p99 Frame Time, Memory, Bundle Size, and True Cost per 1M Updates
We rebuilt the same 10,000-row update workload in React 19, SolidJS, Svelte 5, and Vue 3.5 and measured p99 frame time, retained heap, bundle weight, and a defensible cost model per million updates. The numbers show that architecture, not micro-optimization, decides whether your tail latency survives a billion renders.

Postgres Egress Cost Optimization: Cutting Network Bandwidth by 70% in High-Throughput APIs
Your Postgres bill is rarely about CPU — it is about bytes leaving the database, crossing an availability zone, and traversing a NAT gateway. Here is the systematic playbook we used to cut data transfer cost by 70% in a high-throughput API without touching query latency.

Gemini 4 Neon: A Principal Engineer's Deep Dive into the Architecture
Gemini 4 Neon is a serving-systems release disguised as a model launch: the interesting engineering lives in its control plane, cache fabric, and streaming transport, not the benchmark table. This analysis breaks down the four-plane topology, the latency budget you must own, and the production patterns that keep a Neon integration from melting down under load.