Skip to content

Performance benchmarks

Across five test files from 19.9 to 50.0 MiB, the engine read 28.6 KiB in total per sample to retrieve five small text windows before building the full index.

Horizontal bars comparing total source-block reads across five files. All five are about 28.6 KiB.

The engine probe requested a 4 KiB text window at each of five file offsets (0%, 10%, 50%, 90% and the last 4 KiB). The counter records source blocks read by those requests. The engine may read extra bytes around a window to resolve text boundaries. These are engine read counts, separate from storage-device I/O, memory use and editor latency.

Sample Size Total bytes Source-block bytes per request, in order
verify.log 19.9 MiB 29,287 5,192 / 6,294 / 6,306 / 6,294 / 5,201
over16.java 20.0 MiB 29,308 5,192 / 6,306 / 6,306 / 6,306 / 5,198
wide.jsonl 21.8 MiB 29,272 5,192 / 6,294 / 6,294 / 6,294 / 5,198
source50MiB.java 50.0 MiB 29,275 5,192 / 6,294 / 6,294 / 6,294 / 5,201
markdown50MiB.md 50.0 MiB 29,278 5,192 / 6,288 / 6,306 / 6,294 / 5,198

Measured on November 25, 2026 with Apple M4, macOS 27.3 (26C5035r) and the Space 1.0.0 development engine. Each sample returned the same counts across three runs. To reproduce, generate the samples with make corpus and run space-performance-probe index-baseline <file>. Read coldQueries[].blockReadBytes. New open and scroll timings are pending a low-load test session.

[!HIGHLIGHT] {icon=“none” border=“none” fill=“#eff0f3”} These historical measurements cover Space 0.1.0 on one test Mac. The in-process timings measure the editor and exclude launch and the Finder Quick Look first frame.

Apple M4, macOS 26.6.2, Space 0.1.0 (build 935).

Open time is measured in-process from the open request to the document window being ready, excluding process launch; 7 runs per sample, median reported, all 7 raw values shown. Scroll time is measured in-process as one screen scrolled and drawn, averaged over 30 screens, 3 runs. Samples are generated by a script with asserted byte and line counts, so any machine gets the same input.

Open time, milliseconds (7 runs, median in bold)

Section titled “Open time, milliseconds (7 runs, median in bold)”

Horizontal bars comparing median open times for eight samples.

Sample Size Lines Raw values Median
Java source 6.9 MB 190,000 212 195 194 201 197 189 197 197
Log 19.9 MB 200,000 225 194 200 200 191 193 194 194
Swift source 12.7 MB 300,000 277 259 257 260 259 254 251 259
Java source, past the 16 MiB highlighting threshold 20.0 MB 300,000 313 289 292 297 288 288 291 291
Minified JSON Lines 21.8 MB 60,000 197 164 166 166 169 166 167 166
Log, 800-character lines 22.9 MB 30,000 192 164 158 167 172 165 168 167
Java source, 50 MB 50.0 MB about 1.3 M 914 918 853 839 818 818 818 839
Markdown source view, 50 MB 50.0 MB about 870,000 1029 966 954 944 961 936 933 954

Three samples show how open times varied across the seven consecutive runs. The horizontal axis is the run number.

Line chart of seven open-time readings for fit.java, verify.log and wide.jsonl.

In this build, the 20 MB-class samples opened in under 0.3 seconds. The two 50 MB samples took 0.84 to 0.95 seconds.

Scroll time per screen (average of 30 screens, 3 runs)

Section titled “Scroll time per screen (average of 30 screens, 3 runs)”

Horizontal bars comparing scroll time per screen for five samples.

Log 6.7 ms, 800-character lines 11.3 ms, Java 6.8 ms (6.9 MB) and 8.7 ms (50 MB), and minified JSON Lines 14.2 ms. These are measurements from the identified machine and build; they should not be generalized to other hardware or newer releases.

There was no size limit on opening. In the measured build, files of 8 MiB and above opened in a browse-first mode that decoded on demand and remained read-only until you chose Edit. Highlighting stayed viewport-only past 16 MiB. Wrapped long lines cost 85.9 ms per screen in this sample, so wrapping was off by default in the measured build. The rendered Markdown view was capped by two gates, 1.5 MiB of bytes and 42,933 lines, whichever came first. A note of long lines at the byte cap — 1,572,372 bytes in 630 lines — parsed in 143 ms and rendered in 370 ms in-process on an M4, medians of three runs. Rendering cost tracked how many blocks a note had, not just its bytes: the same 1.5 MiB written as short paragraphs cost about twice as much, which is why the line gate was also used.

The samples are generated by a script with asserted byte and line counts, so any Mac gets the same input. Open and scroll timings come from the in-process SPACE_OPEN_TRACE and SPACE_SCROLL_TRACE tracing built into the shipping app; nothing is instrumented specially for this page.

Recorded with Space 0.1.0 (build 935). The comparison data from other editors is omitted because its launch and measurement boundaries differ from the in-process Space timings above.