How a result is decided
This page explains how KeepSnappy decides a result, and lists every result word and status. Read it when you want to know why your pull request got Worse and not Slightly worse.
Each journey and phone model gets one word on a pull request. You see it in the job log (with --wait), on the workflow run’s Summary page, on the dashboard and with keepsnappy status.
Your pull request got a result and you want to know what to do: Your pull request’s result.
The terms these pages use, such as journey, run, session, run set, baseline, place, alarm, false alarm and over budget, are in the Glossary.
The result words Worse, Slightly worse and Can’t tell are defined below. For missing data, start with common problems, then your test tool’s guide.
When a pull request gets a result
A pull request gets a result once main has three sessions on the same phone model and journey. The three count per phone model, so give main its three sessions on each phone model your pull requests run on, before the first pull request.
Push to main (or run the workflow on main) until it has three sessions. Sessions on the same commit each count. A main session counts only when it has at least three valid runs; one with fewer is skipped, and an older one is used instead. Until then the result is Can’t tell: “main does not have enough sessions on this phone and journey yet”. Before the first session on main, the result is No main to compare: “main had no runs on this phone when this branch ran”. Once main has three sessions on that phone the dashboard offers a Compare with main now button that judges the branch again with main as it stands, without a new run. Any member of the organization can use it. During the pilot, that button is the way to do this: keepsnappy compare-now refuses a CI key.
The pull request session needs at least three valid runs as well. With fewer, the result is Can’t tell: “there are too few valid runs in one session”, and the branch page on the dashboard gives the count: with three repetitions and one failed run it reads Not compared: 2 valid runs of 3 needed.
main itself gets a word from its fourth session on: each main session is compared with the three before it. Until then keepsnappy status --branch main shows Can’t tell and how many sessions main has. Run from the folder where you ran keepsnappy run, it shows the journey and phone you ran and says how many others of the app it leaves out; --all shows them all, and --journey and --phone name the ones you want.
The job ends after the upload. By default each journey runs 5 times per session. With every run valid, its log shows 5/5 runs valid and uploaded 5 runs to … (10/10 for two flows). This is the attempted run count, separate from the minimum of 3 valid runs needed for comparison; invalid runs are not counted as valid. With --wait the job then waits for the result. Without it, the log shows Not judged yet and a dashboard link, and the workflow run’s Summary page shows Not judged yet with the same link. KeepSnappy judges the session within a few minutes.
The main sessions a pull request is compared with
A session is one CI job: it runs every journey (one end-to-end test, such as one Maestro flow) 5 times per session by default (repetitions in keepsnappy.yml) and uploads the measurements. Each of the three main sessions is a full job. Budget the first session says how long one takes. A pull request is compared with the three latest main sessions on the same phone model: the simulator’s device type, such as iPhone 16. The simulator your job boots fixes the model. Init does not choose one: it keeps the simulator steps of your own job, so pin the Xcode version and the simulator type there. If the runner image changes its simulators, the model can change, and the history of main then starts again: the new model needs three sessions of its own. The model is the simulator’s device type, not its name: a simulator renamed, or another one of the same type with a different name, keeps the history of main. The iOS version and the runtime build are recorded with the session.
Your app’s comparison branch is main unless it was set to another, and these pages write main for it whatever its name. To change it, an org owner or admin asks the KeepSnappy team (Get access); there is no dashboard setting yet. To check whether the workflow targets the app’s comparison branch, set your CI key in the shell as KEEPSNAPPY_KEY and run npx --no-install keepsnappy doctor --group app. Read the comparison-branch line. Sessions on another branch also report when it differs.
The five words
A result is Worse, Slightly worse, No change, Better or Can’t tell. Every word and label defines each.
How a place is judged
Two things are judged: the time your change added at each place, and the memory kept by the journey. Test steps and the launch screen are shown, never judged, and so is everything else KeepSnappy measures, jank time and a place’s React render time included. A tap handler that is slow before it renders anything does not change the word.
At each place, KeepSnappy works out the time your change added there from the React components that rendered. That time has three parts:
- More renders: a component rendered more times than in any
mainrun. Each extra render counts at what one render of that component usually costs onmain. - New components: a component takes 1 ms or more in every run of your branch, and less than 1 ms in every
mainrun. All its time counts. - Slower renders: a component takes longer per render, and longer in all, than in any
mainrun. The time pastmain’s slowest counts.
KeepSnappy first allows for how fast the phone ran on your branch compared with main, so a phone that is slower overall does not make every component look slower. It works out the time for each pull request run, and the place counts the smallest of them: the time must be there in every run.
- Worse: the place added one frame (16.7 ms) or more in every pull request run.
- Slightly worse: it added 8.3 ms or more in every pull request run, and less than one frame in some run.
- No change: it added less than 8.3 ms in some pull request run.
- Can’t tell: the place could not be judged. It names one reason (below).
Part of a place’s time can come from no component KeepSnappy can account for, for example from a component that renders in only some main runs. When the counted time stays under one frame in some run, but the counted and the unexplained time together reach one frame in every run, KeepSnappy looks closer. If the place still reaches one frame in every run with each millisecond counted once, it reads Worse, and its time says the component is not certain. Otherwise the place is not judged, and reads “too much of the time at this place is not explained by any component”.
What a slower place says
Each place that reads Worse or Slightly worse says the time it added and what drives it. The number is the place’s time in its pull request run with the least time.
| The place says | What drives the time |
|---|---|
does 18 ms more work | The place does more: components render more times, or new components render. At a Worse place this alone reaches one frame; at a Slightly worse place it is the larger part. |
same work, 18 ms slower | The same renders take longer. At a Worse place this alone reaches one frame; at a Slightly worse place it is the larger part. |
does more work and is slower, 18 ms in all | A Worse place where more work alone and slower renders alone each reach one frame. |
18 ms from more work and slower work, mostly more work | A Worse place where neither part reaches one frame alone, and more work is the larger part. |
18 ms from more work and slower work, mostly slower work | A Worse place where neither part reaches one frame alone, and slower renders are the larger part. |
18 ms from more work and slower work | A Slightly worse place whose two parts are the same size. |
18 ms slower, component not certain | A Worse place where part of the time is not explained by any component (above). The number includes that part. |
Under the time, the place names the components that carry it, largest first, until they carry 60 % of the time, and at most three. Each has its time and its part, for example Components: ChatRow 20 ms (more renders). A part reads more renders, new, slower renders or not certain. When a tap opens a screen, the two show as one place, with the worse of their two words and the larger of their two times.
The place’s React render time chart is shown for information only: it does not decide the word.
How the places make the result
Each place is judged on its own. Times are never added up over places: the result takes its worst place. KeepSnappy decides the result in this order:
- Some reasons stop the comparison before anything is judged (below). The result is then Can’t tell.
- Memory past its Worse limit makes the result Worse. Memory past its Slightly worse limit makes it at least Slightly worse.
- With fewer than three judged places, the result is Can’t tell, “too few places could be judged”, even when one of those places is Worse. Only memory can then make it Worse or Slightly worse. If a journey version change left places out, the reason is “the sides were measured differently” instead. The result says the journey changed and names both versions only when every place was left out and the journey change alone explains it. If two places were still judged, the result uses the generic wording even when the journey is the only setting that differs.
- A Worse place makes the result Worse.
- A Slightly worse place makes it Slightly worse.
- When some places were measured differently on the two sides and nothing above gave a word, the result is Can’t tell, “the sides were measured differently”.
- Otherwise the result is No change.
A place that was not judged does not stop a No change. The result lists it with its reason, and counts only the judged places, for example Slower at 1 of 4 places. A place measured differently is not judged, and memory is not a place: neither counts among the judged places.
These rules do not give Better yet: a place that got faster reads No change. Results judged with earlier rules can still read Better.
Memory is judged once per run: how much more memory the app still held at the end of the journey than at launch (+N MB over launch), read after a clean-up of the JavaScript memory. On Android the number is the app’s own memory (anonymous memory and swap): graphics (GPU) memory is not counted, so a rise in graphics memory alone does not show. It is Slightly worse past the larger of 20 MB and 10 % of main, and Worse past the larger of 150 MB and 30 % of main, when every pull request run is higher than every main run. Memory is not a place: it has its own two limits.
- Worse: memory is past its Worse limit, or at least three places were judged and one of them added one frame (16.7 ms) or more in every pull request run.
- Slightly worse: memory is past its Slightly worse limit, or at least three places were judged and one of them added 8.3 ms or more in every pull request run, and nothing reaches Worse.
- No change: at least three places were judged, none is slower, and memory is within its limits.
- Better: not given by these rules yet. A result judged with earlier rules reads Better when a judged measure got faster and nothing got worse.
- Can’t tell: KeepSnappy could not compare, or fewer than three places could be judged. The result says why (below).
A Worse counts against the pull request: keepsnappy status then prints my-feature: blocked, and with --wait the step fails, unless keepsnappy.yml says verdict_gate: advisory: the step then passes and the result still says Worse, so the dashboard can say Worse while CI passes: that is expected, not a bug (CI). With a CLI release that has these words, the job log and the job summary then say Would block the merge; advisory during the pilot, CI passes instead of Blocks the merge. When that release sends your gate setting, Slack, the dashboard and the MCP server say it too. Some Worse results do not count against the pull request: they show as Worse (not blocking), with their cause.
An alarm you looked at and decided does not come from the change can be marked a false alarm. That changes the headline of the branch page on the dashboard and what keepsnappy status counts, not the stored result or how --wait ends: see False alarms.
A person’s false-alarm mark needs another look if the alarm moves from Slightly worse to Worse, starts blocking, or adds places or measures. Changed values alone do not invalidate it. An AI answer alone does not suppress a blocking alarm: the result and the check stay as measured, and the AI’s answer shows beside them.
Noisy places
Some places vary a lot from one main session to the next. KeepSnappy compares each component with its highest value in any main run: renders past main’s most, and time past main’s slowest. So at a place where main varies a lot, a slowdown smaller than that spread reads No change. A noisy place is otherwise judged like any other place.
When a place is not judged
Each place that was not judged reads Can’t tell with one reason. KeepSnappy checks the reasons in this order and gives the first one that applies:
| Reason | It means | What to do |
|---|---|---|
| “the PR has too few runs at this place” | Fewer than three pull request runs reached the place. | Find out why runs stopped before the place (Fix common problems), then run the branch again. |
| “main has too few runs at this place” | Fewer than nine main runs reached the place, or fewer than three main sessions have three runs each that reach it. | Nothing on your branch: main’s next sessions give the place its runs. |
| “the component data at this place is incomplete” | A run on either side has no time for some component at the place, or its list of components was cut short, or the SDK changed between the two sides there. | Keep renderTimes on (plugin options). After an SDK upgrade, give main sessions with the new version. |
| “the phone’s speed is not known at this place” | KeepSnappy could not work out how fast the phone ran at the place. Such a place reads Worse only when its extra renders alone reach one frame in every run, and never reads Slightly worse. | Nothing to do on your branch. Usually the place renders too little on main to tell. |
| “too much of the time at this place is not explained by any component” | Part of the time comes from no component KeepSnappy can account for, and that part decides whether the place reaches one frame (above). | The usual cause is a component that renders in only some main runs. Run the branch again; the place may be judged then. |
A place can also be left out before it is judged: it is new, it was measured differently on the two sides, or the phone started overheated (the list of places that were not compared). Such a place does not count among the judged places either.
When the result is Can’t tell
The result names its reason:
- “main does not have enough sessions on this phone and journey yet”: fewer than three
mainsessions count (above). - “there are too few valid runs in one session”: the pull request session has fewer than three valid runs.
- “the sides ran on different platforms (iOS and Android are never compared)”.
- “the sides were derived with different versions”: the two sides were processed by different KeepSnappy versions. Recompute both sides in Setup; no new runs are needed.
- “too few places could be judged”: fewer than three places were judged. The dashboard says how many, for example
Only 2 of 5 places could be judged, too few for a result. Each place that was not judged says why (above): open them from the branch page. - “the sides were measured differently”: some places were recorded with different settings on the two sides. You see this reason if a journey version change left fewer than three judged places, including when one of those places was Worse. When the journey version change alone explains why every place was left out, the result names both versions. This reason also applies when measurement settings differ and no other place gives a result.
The first four are checked before anything is judged. With fewer than three judged places, a Worse place still shows its own result, but it cannot make the session Worse. Memory can still make the session Worse or Slightly worse.
Results judged with earlier rules can also say “a change that would count has no value in some runs, so it cannot be confirmed in every run” (a place got slower in every run that has it, but some runs have no value there) or “the judged measures are missing in one session” (no place has a judged measure on both sides, for example a build without render times).
Every word and label
What you can see on a result, on the dashboard and in the job’s summary, what it means and what to do. This table is the one full list of result words and statuses: the other pages and the Glossary link here.
| You see | It means | What to do |
|---|---|---|
| Worse | A place added one frame (16.7 ms) or more in every pull request run, with at least three places judged, or memory is past its Worse limit. The check fails, unless keepsnappy.yml says verdict_gate: advisory, as init writes it for a new app: then the check passes and the word still says Worse. | Open the branch on the dashboard to see which places changed (below). |
| Worse (not blocking) | Slower, for a reason that does not count against the pull request: your branch and main were measured differently, main has too few sessions at the changed places, or the platform hasn’t had its own noise check yet (Glossary). The result names the reason. The first two come from results judged with earlier rules: today’s rules leave those places out, and the result is Can’t tell when nothing else is worse (above). The check passes. | Read the reason, and run again when the cause was the setup. |
| Slightly worse | A place added 8.3 ms or more in every pull request run, with at least three places judged, or memory is past its Slightly worse limit, and nothing reaches Worse. The check passes. | Look when you have time. |
| No change | At least three places were judged, none is slower, and memory is within its limits. A place that got faster reads No change too. | Nothing. |
| Better | On a result judged with earlier rules: a place is faster than on main, and nothing is worse. Today’s rules do not give Better yet. | Nothing. |
| Can’t tell | KeepSnappy could not compare, or fewer than three places could be judged. The result says why. A single place can read Can’t tell too, with its own reason (When a place is not judged). | Read the reason below the word. |
Only 2 of 5 places could be judged, too few for a result | The result is Can’t tell: “too few places could be judged”. | Open the places that were not judged: each says what it needs (When a place is not judged). |
| No main to compare | main had no runs on this phone model when the branch ran. | Give main three sessions. |
Not compared: 2 valid runs of 3 needed | The pull request session has fewer than three valid runs of the journey. | Find out why runs failed (Fix common problems), then run the branch again (above). |
Not judged yet | The result is not computed yet. | Wait a few minutes. |
Session failed | The session ended with fewer than the three valid runs it needs, because runs failed or sent no data, so nothing was compared. When some runs are valid, the journey reads Can’t tell: “there are too few valid runs in one session”. When no run sent any data, the job log says Session failed: no run sent any data. Check that the build carries the SDK and that the app reaches the API. or names another cause, and the step fails, also with verdict_gate: advisory. | Read the line after the word, then fix the build or the tests (Fix common problems). |
Session incomplete · 1 of 3 runs | Every run that ran is valid, but there were fewer than the three a session needs, for example in a check with one repetition. The journey reads Can’t tell, and the dashboard shows this line in place of the reason. It is not a failure: the step does not fail on it. | Run the journey with more repetitions (repetitions in keepsnappy.yml). |
Can’t tell — the device session failed | The pull request session closed and none of its runs is valid, for example because the device session on the phone farm (farm) failed before any run sent data. Nothing can be told about the change. The CLI says it in place of Session failed when the farm ended the session, and the step still fails, also with verdict_gate: advisory. The dashboard shows it on the branch and on Home, and the Branches list says The device session failed. Slack posts Session failed. | Run the job again. When it fails the same way, open the session from the job log’s Device session: line (Fix common problems). |
Not judged: no valid runs | No run of the journey on this phone model is valid, so there is nothing to judge. | Find out why the runs failed (Fix common problems), then run again. |
Not compared: main has 2 valid runs of 3 needed | The main side of the comparison has fewer than three valid runs of the journey. | Run main again on this phone model. |
Can’t confirm 2 places: a run has no value there | On a result judged with earlier rules: two places got slower in every run that has them, but some runs have no value there. The result is Can’t tell. | Run the branch again: a full set of runs decides it. |
Not judged: a newer run set of this journey is judged | An older session of the journey on this phone model. The result now stands on a newer one. | Nothing. Open the newer session. |
Main is collecting its baseline: 1 of 3 sessions | main has fewer than three sessions of the journey on this phone model, so it has no result of its own yet. | Give main three sessions. |
Main ready to compare | A branch that had no main to compare with: main now has enough sessions to judge it. | Press Compare with main now on the branch: it judges the branch again, without a new run. |
AI: likely a false alarm (0.7): The place is noisy. | The AI review answered that the code change cannot explain this alarm, with its confidence (0 to 1) and its reason. It shows at once, next to the word. The word, the check and the counts stay as measured. | Read the reason. If you agree, mark the place a false alarm (False alarms); your mark then replaces this line. |
KeepSnappy check: certain false alarm (1.0): same commit as the baseline: the code didn't change | The session ran on the same app commit as every baseline session it was compared with, so the alarm cannot come from a code change. This is KeepSnappy’s own check, not AI. The word, the check and the counts stay as measured. | Nothing in your code. Mark the place a false alarm if your team wants it out of the open count. |
Person: false alarm or Person: real | A person marked the alarm. A person’s mark wins over the AI’s answer and the same-commit check. | Nothing. |
In the list of places that were not compared, each place starts with its reason. Three of them:
| You see | It means | What to do |
|---|---|---|
New place | main has no history for this place yet. It is judged fully once main has it in three sessions. | Nothing. The next sessions of main give it a history. |
Measured differently | The two sides recorded this place with different settings: another SDK, driver or journey version, a switch, or a screen where the run opened fewer places (taps, scrolls, steps) than main usually does. The line names what differs. | Measure both sides the same way. After an upgrade, give main sessions with the new version. |
Phone started overheated | The device was already hot when the session started, so that side’s session does not count, or is left out of this comparison. | Run that side again once the device has cooled down. |
A result covers only the places that were compared. A place where main has no history yet is not compared, so a pull request that adds or reaches new places can read No change while those places were not judged. The dashboard lists them under the places that were not compared, each starting with New place. Slack adds one line that counts them, for example 48 places have no main yet: not compared; the job log and the workflow run’s Summary page add the same line with a CLI release that prints it. keepsnappy status gives the word without that count. Open the branch on the dashboard to see which places were left out.
See why a result is Worse
Open the branch on the dashboard (Branches, then the branch). Each slower place says the time it added and what drives it, such as does 18 ms more work, and names the components that carry that time, such as Components: ChatRow 20 ms (more renders) (What a slower place says). Its Investigate section lists the screens, taps, and components that changed, each with its value on main and on the branch, for example MessageList, component render time 8.1 → 13.4 ms.
From a terminal:
npx --no-install keepsnappy status --branch my-featureIt prints the word for each journey and phone model, and a dashboard link. Without the dev dependency, use npx @keepsnappy/agent status.
CPU and memory
The dashboard shows the app’s CPU and memory beside the result: on a branch, on a session, on a run and on a shared result link. What this card marks, a value higher or lower than main or a step outside main’s range, is information only: it doesn’t change the word or the check. One memory value is judged on its own: the memory still held after the clean-up at the journey’s end (the last row below). It can make the result Slightly worse or Worse (How a place is judged).
What each run can record:
| Measure | What it is | Recorded |
|---|---|---|
| App CPU | The app’s CPU use over the whole run, and its CPU time around each step | On every setup |
| UI-thread CPU | The UI thread’s CPU time around each step. On Android the RenderThread isn’t measured separately. | On every setup |
| Memory at launch and at the journey end | The app’s memory once its first screen settles, and when the journey ends. On Android it leaves out GPU memory. | On every setup |
| Memory after each step | The app’s memory when each step ends | On every setup |
| JS heap | The JavaScript heap at each step’s end | While the run’s raw data is kept (How long data is kept) |
| Memory after clean-up | The memory still held after the clean-up at the journey’s end | Only when the run has a run token and the app opens the flush link: the SDK then runs the clean-up itself. The Appium driver, the Maestro flows for BrowserStack and local Android runs do this. Your own test code can open the link that keepsnappy flush-link prints. A local run on an iOS simulator has no run token, so it doesn’t record this. |
“Every setup” means every test tool (Maestro, the Appium driver, your own Appium or WebdriverIO suite, e2e and any other command) on a simulator, an emulator, a phone on a cable or BrowserStack. The SDK reads these values from inside your app, so the test tool doesn’t change them.
When a card says CPU and memory weren't captured in these runs., those runs stored no reading, so nothing is drawn in their place, never a zero. The card says only what the stored data shows:
| You see | It means | What to do |
|---|---|---|
Main's runs have them. after that line | The main runs this side is compared with hold these readings. That doesn’t say why this side’s runs don’t. | Check that both sides are built and run the same way: the same SDK version and a measuring build. |
CPU and memory values aren't stored for these runs. | KeepSnappy holds no stored values for these runs, so the card can’t tell whether they were captured. | If it stays like this, tell the KeepSnappy team (Get access). |
When a measure is missing on both sides and you expected it, check that the runs used a measuring build (Fix common problems).
On other pages
A screen, tap or component that is too slow on its own, whatever main does, is listed as Over budget. It never changes the word: see Over budget.
Slack messages and shared result links are on Slack messages and shared links.
Which place on main each place is compared with, and what a rule change does to stored results, are on How places are matched with main.