How We Measured

Space draws text with its own renderer, built into its fork of the GPUI framework. It draws each glyph on the GPU straight from its outline, using the Slug algorithm. GPUI’s original renderer, which the chart calls Native, has Core Graphics draw each glyph on the CPU at every new size, then keeps the result in a texture.

We timed both renderers on the same Mac, with the same text.

The setup

  • Mac: Apple M3 Pro
  • System: macOS 27
  • Date: October 1, 2026
  • Displays: each scene drawn at 1× and at 2× (Retina)

The scenes

  • UI: app controls, a sidebar and 25 form rows in IBM Plex Sans at 12 to 20 points, about 2,000 glyphs in a 1440 × 900 window.
  • Editor: two panes of Rust code with a file tree and a terminal, in Lilex at 12 and 13 points, about 3,800 glyphs in a 1440 × 900 window.
  • Document: six columns of English, code and Chinese at 10 to 32 points, about 13,700 glyphs in a 2560 × 1440 window.
  • Zoom: the Editor scene, made 1% larger in every frame for 200 frames, so no size repeats.

What we timed

Each number is the time to draw one frame: the CPU’s work and the GPU’s work, added together. It is the median frame of three passes, each of 30 frames (200 for Zoom).

First-frame latency is that time for a frame that draws text at sizes not drawn before, as when text first appears. In the UI, Editor and Document runs, every frame is such a frame. In the Zoom run, every frame is a new size, as when you zoom.

Zooming

SceneDisplayNativeSpaceFaster
Editor1×5.23 ms0.66 ms7.9 times
Editor2×7.16 ms0.85 ms8.4 times

First-frame latency

SceneDisplayNativeSpaceFaster
UI1×5.28 ms0.84 ms6.3 times
UI2×7.45 ms0.95 ms7.9 times
Editor1×9.58 ms1.92 ms5.0 times
Editor2×12.88 ms1.98 ms6.5 times
Document1×100.23 ms38.03 ms2.6 times
Document2×110.89 ms37.83 ms2.9 times

The UI scene at 1× varied more between runs than the others, by up to 36%.

Editing

Space keeps a file’s text in a rope: a tree whose leaves are chunks of up to 1,024 bytes of text, and whose nodes have up to 16 children each. An edit changes one chunk and the counts on the path from that chunk up to the root. The tree gains a level only when the file grows many times larger, so the path stays short.

Inside a chunk, the rope counts characters, lines and UTF-16 units with the NEON instruction set. This is how fast a chunk is read and counted. It is a small part of an edit.

Levels of the tree

FileChunksLevels
1 KB11
1 MB1,0244
100 MB102,4006
1 GB1,048,5767

These are the levels of a rope built from the file’s text, with the row of chunks counted as one level. We read them from a build of the rope that reports its depth. The drawing on the home page is a sketch: each node shows five of its up to 16 children, and the number of levels is the true one.

Editing setup

  • Mac: Apple M3 Pro
  • System: macOS 27.2
  • Date: November 14, 2026
  • Build: Rust 1.99.1
  • Text: lines like let value_7 = compute(7, "text") * 2;, all ASCII, cut to files of 1 KB, 1 MB, 100 MB and 1 GB

Editing method

An edit is one character or one line break, put in or taken out. At the cursor means 200 characters typed one after another in the middle of the file, then deleted again. At a random place means each edit lands at a new random offset in the file.

Each number is the time of one edit: the median of 401 batches of 200 edits (201 batches at 100 MB and 1 GB), after 21 batches of warm-up. The tables show the median of three runs. The runs of one number differed by up to 9% at the cursor and up to 11% at a random place.

The text buffer numbers are the median of 60 batches of 100 edits. The counting numbers are medians too, from three runs.

Rope edit at the cursor

Edit1 KB1 MB100 MB1 GB
Insert a character45 ns106 ns155 ns188 ns
Delete a character161 ns229 ns285 ns356 ns
Insert a line break291 ns350 ns401 ns420 ns
Delete a line break302 ns381 ns451 ns500 ns

The home page shows the first row. The time is not flat: the file grows a million times and the time about 4.2 times, as the tree gains levels.

Rope edit at a random place

Edit1 KB1 MB100 MB1 GB
Insert a character65 ns135 ns700 ns1,094 ns
Delete a character198 ns287 ns528 ns626 ns
Find the row and column of an offset36 ns115 ns396 ns604 ns

From 100 MB on, an edit at a random place takes 1.8 to 5.8 times as long as one at the cursor. In a 1 GB file it takes up to about 1.1 µs.

Text buffer edit

Edit1 KB1 MB100 MB1 GB
Insert a character at the cursor6.3 µs6.6 µs6.4 µs6.5 µs
Delete a character at the cursor8.5 µs8.9 µs8.8 µs8.8 µs
Insert a line break at the cursor6.5 µs6.5 µs7.1 µs6.8 µs
Delete a line break at the cursor9.8 µs9.8 µs10.5 µs10.3 µs
Insert a character at a random place14.9 µs23.1 µs24.6 µs24.9 µs
Delete a character at a random place17.5 µs22.6 µs23.1 µs23.3 µs

This is the editor’s text buffer, which edits the rope and also keeps the fragments, the undo history and the anchors. At the cursor it takes about 6 to 11 µs at every size, which is 16 to 140 times the rope’s own edit. The three runs of one number differed by up to 8%.

A whole keystroke

FileTime per character
1,000 rows (about 48 KB)1.53 ms

This types one character per frame into that file, and the time is the median of three runs. Each round is the key press, the edit, the layout, the drawing and a Metal draw, one after the other with no wait for the display. It is not the delay you see. At 120 Hz a display frame lasts 8.3 ms, so the frame, not the edit, sets what you see.

Counting in one chunk

CountNEONWord at a timePlain loop
Characters11 ns42 ns142 ns
Line breaks11 ns47 ns146 ns
UTF-16 units33 ns79 ns269 ns

These are the times to count one 1 KB chunk of the text, through the rope’s own functions.

Counting in a long text

CountNEONWord at a timePlain loop
Characters75.4 GB/s26.5 GB/s7.4 GB/s
Line breaks78.5 GB/s23.6 GB/s7.4 GB/s
UTF-16 units25.9 GB/s14.0 GB/s3.8 GB/s

The same counts over 64 MB of text. Over a single 1 KB chunk the speeds with NEON are 92.7, 92.0 and 31.5 GB/s.