Fast apps, built fast: our speed rules, Speed Lab and ready-made code
· Kai Gilb

"It feels faster" is not a measurement. So last week we wrote down how we measure speed, and we built a tool that measures it the same way every time.
The short version:
- A rule for speed. No speed work starts without a "before" reading. One critical dimension of speed is the seconds from what you do to the moment the screen shows what you expected. Our goal is 0.3 seconds. Above 1 second is not good enough.
- GilbApp reloads faster. The first row of records: from 2.4–4.9 seconds to 1.9–2.3 seconds.
- The speed kit. Nine small building blocks that make an app fast. They are free on GitHub. In a test app on production, the first row came 3.8 times sooner: 0.43 s instead of 1.6 s.
- Speed Lab. One app that measures speed the same way every time, in Chrome and in Safari's engine, on a computer and on a phone-sized screen.
- Ready-made code for developers. 394 building blocks are free on GitHub today, up from 277 on 29 October.
Why we care: apps on GilbPlatform should be fast by default
MyJackfruit keeps your data in your own vault. Apps are guests: they come to your vault to read and write. That's good for you, but it means an app can't just keep everything on its own server. If every screen waits for the vault, the app feels slow.
We don't want every developer to solve that alone. So we are building the answer into the platform, as parts any developer can take:
- Rules that say what "fast" means and how to measure it.
- Building blocks (the speed kit) that do the hard parts.
- A meter and a test app (Speed Lab) that show whether it worked.
1. The rules: measure first
On 29 October we wrote three speed standards on GilbPlatform: a set of rules, a form for a speed table, and a checklist that our coding and testing agents follow.
The idea is simple. For each thing a person does, write down:
- A: what the person does. For example "reload the page".
- B: what they expect to see. For example "the first record row".
- The seconds from A to B, before the change and after it.
- Where it was measured: which device, which network, which release, real data or test data.
Our goal is 0.3 seconds. That feels instant. Our limit is 1 second. Above that, we're not done.
2. The first real app: GilbApp
GilbApp at gilb.com/app was the first app to take the speed kit. It went live on 31 October. We measured it before and after, the same way, on the same vault, in a normal browser on a normal home network.

GilbApp now remembers your vault list and the first screen of your records on your device, so it can show them right after you are signed in. It no longer waits for the full answer from the vault.
The worst case went from almost 5 seconds to about 2.3. The time also swings much less.
It's still above our own 1-second limit. What holds it now is the sign-in check: about 1.8 seconds before the app knows who you are. We will never show a list before we know who you are, because the next person at the same computer could see the last person's records. So the next gain is on the platform's side: a faster sign-in check.
3. The speed kit: free on GitHub
The speed kit is nine small building blocks. Among them:
- a copy on the device, so a list can show at once and refresh behind,
- a short-term memory, so going back to a page costs nothing,
- prefetch: when you rest the pointer on a link, the next page starts loading,
- background jobs: you can leave a page while it saves,
- an "updated" line, so you can see how fresh the data on screen is.
They are on GitHub in GilbPlatformCode, and since 1 November a developer can find each one in the GilbPlatform References by searching for what it does, such as "device copy".

Two runs each, on production, with 503 entries.
4. Speed Lab: the same test, every time
Speed Lab is one app with a test for each kind of speed. It runs each test in real browsers: Chrome's engine and Safari's engine, on a computer screen and on a phone-sized screen. Every run is saved, and Speed Lab compares it with the runs before. If something gets slower, it says so.
I ran it today (2 November, 19:59 Norway time). The test vault answers each request in 0.6 seconds and holds 500 entries:
| What the person does | What they see | Time |
|---|---|---|
| Opens the list the first time | the first entry | 1.2 s |
| all 500 entries | 3.0 s | |
| Goes back to the list from an entry | the first entry | 0.002–0.003 s |
| Reloads the page | the first entry, from the device, with 0 requests to the vault | 0.007–0.014 s |
| Signs out, and someone else signs in | the first person's entries | none, 0 seen |
All checks passed in all four combinations of browser and screen. The first-visit time was within 0.01 seconds of the two runs on 1 November, so nothing got slower.
That last row matters as much as the speed. A copy on the device is only fine if it is wiped when you sign out. Speed Lab tests that every time.
Since 1 November Speed Lab also has a meter that any app can add in a few lines, and it can test any app at its address. Today it measured GilbApp on production. A reload showed the first row in 1.79–1.83 seconds. By hand, two days earlier, we measured 1.90–2.29 seconds. The machine and the hand agree.
What's not done yet
- GilbApp is above 1 second on a reload. The sign-in check is next.
- The very first open in a brand-new browser still takes about 9 seconds on a computer.
- Safari's engine: Speed Lab can't yet test GilbApp in it while signed in. The test browser crashes, and we haven't found why.
- A real phone: so far only a phone-sized screen with a slow network, not a phone in a hand.
- Speed Lab for everyone: today it runs on our own machines. We plan to put it online so any developer can test their app.
For developers
If you are building on GilbPlatform:
- Take the speed kit from GilbPlatformCode.
- Measure first: write down A, B and the seconds, before you change anything.
- Aim for 0.3 seconds and don't stop above 1.
The Developer Guide has the calls that make lists fast. We'll write again when Speed Lab is online.
Kai Gilb
