Feature flag experiments · built on Flagsmith
Your code ships behind feature flags. Do you know which ones help users?
Developers and agents push fixes behind flags every day. PerfFlags turns them into Flagsmith experiments, measures what real users get, and turns on only the fixes that make the experience better.
- Measured on
- real Chromium, throttled 4G
- Decided by
- Flagsmith Bayesian engine
- Turned on by
- a person, never the agent
you › make the product page faster
merged › 3 fixes, all behind the flag:
- off Serve the hero image as AVIF · agent
- off Remove loading="lazy" from the hero · dev
- off Preload the hero with fetchpriority="high" · agent
team › just turn them all on?
you › which ones actually help users?
The problem
Every fix ships behind a flag. Then someone turns it on and hopes.
Code ships behind flags
Developers and coding agents merge fixes every day, wrapped in a feature flag so they can be turned on later.
Flags get flipped, not tested
Someone moves the flag from off to on and moves on. Nobody compares the users who got the fix with the users who did not.
Experiments feel like extra work
Variants, metrics, a fair split and the statistics for every fix take longer than the fix itself. So the experiment never happens.
How it works
From “make it faster” to a fix you can prove, in four steps.
- 01 · Scan
See what users get today
Lighthouse scans the live page, the version your users see with every flag off. Its findings show what is slow: a heavy hero image, lazy-loading, no priority hint.
- 02 · Plan
An agent picks which flagged fixes to test
Your fixes already sit behind a flag. Claude reads the findings and designs the experiment: which fixes, in which combinations, so the result shows which one matters.
- 03 · Measure
Real browsers, real load times
Flagsmith splits visitors by identity. Each visit is a real Chromium on throttled 4G, reporting its real Largest Contentful Paint and whether it reached the cart.
- 04 · Ship
Turn on only what wins
Flagsmith's Bayesian engine calls the winner. You approve, and the winner is turned on for everyone on the same flag. Losing fixes stay off.
A real result
Two fixes behind one flag. One of them did nothing.
Removing loading="lazy" is the textbook fix for a slow hero. On a 2.3 MB image it changed nothing: the download was the bottleneck. AVIF plus eager loading and a preload cut the load from 15.3 s to 2.3 s, and shoppers reached the cart 7× as often.
Demo store, 192 identities, Flagsmith Experimentation results. Every visit is a real Chromium load on throttled 4G with a 4× slower CPU; when a shopper gives up waiting is simulated.
You stay in charge
The agent proposes. A person approves.
Nothing changes in Flagsmith until someone with a name says yes: to create the experiment, to start it, and to ship the winner. Every decision lands in a log you can show an auditor.
- 03:43shobhnik approved the plan · flag, variants, metrics created
- 03:44shobhnik started the experiment
- 04:06Flagsmith: AVIF + eager + preload, 100% chance to win on LCP
- nextwaiting for a person to ship the winner
Built on Flagsmith
Every experiment is a real Flagsmith experiment. Nothing is mocked.
Multivariate flags
One flag per experiment, one keyed variant per fix.
Experiment metrics
lcp as a mean, lower is better. add_to_cart as an occurrence, higher is better.
Identity targeting
Each visitor keeps the variant they first saw. Exposures are recorded on the server.
Bayesian results
Lift, credible interval and chance to win for every variant and metric.
Same-flag rollout
Completing the experiment ships the winner on the flag you already have.
CLI and API
The agent provisions everything through the Flagsmith CLI. A person approves each step.
Your code is behind flags. Turn on what works.
Scan a page, let the agent design the experiment, and let Flagsmith prove which fix your users actually feel.