Lumen

Terminal benchmark: measuring terminal speed

"Fastest terminal" means different things depending on what you measure. Here's how to measure the part you care about.

Updated

A terminal benchmark usually measures one of two things: throughput, how quickly a terminal can take in and display a flood of output, or input latency, how long it takes for a key you press to appear on screen. They're different problems, and a terminal can win one and lose the other. That's the main reason "fastest terminal emulator" claims disagree. If you're choosing a terminal, latency is the one you feel all day; throughput matters when you tail big logs or run noisy builds.

Throughput: how fast output gets through

Throughput tests pour data into the terminal and time how long it takes to finish. The simplest version needs nothing installed:

seq 1 5000000 > /tmp/numbers.txt
time cat /tmp/numbers.txt

Run it a few times in each terminal with the same window size and font, and compare. It's crude but honest about what it measures.

vtebench, from the Alacritty project, is the better-known tool. It runs a set of scripted workloads (plain text, colour changes, scrolling regions, unicode) and reports how long each takes. Its own README is clear that it measures only how quickly a terminal reads from the PTY, and that it doesn't cover frame rate or latency, so it can't give a complete picture of performance on its own.

A catch with throughput tests: a terminal can skip drawing frames while output is pouring in and only draw the final screen. That's a sensible design, since nobody can read a million lines a second, but it means a terminal that draws less can look faster.

Input latency: how fast a keypress appears

Latency is the delay from pressing a key to seeing the character. It's what makes a terminal feel snappy or sluggish while typing, and it's harder to measure because it spans the keyboard, operating system, terminal, compositor and display.

Typometer is the usual software tool. It generates OS-level key presses, watches the screen for each character to appear, and records the delay. It runs on Linux, macOS and Windows and needs Java. It measures from the synthetic keypress to the pixel change it can capture, so it leaves out keyboard scanning and part of the display pipeline, but it's consistent enough to compare terminals on the same machine.

The most complete method is a high-speed camera filming a key and the screen together, then counting frames between the press and the glyph. That captures everything end to end, but it takes effort and good equipment.

Why fastest terminal claims vary

  • Different metrics. A throughput winner isn't automatically a latency winner.
  • Different machines. GPU, driver, display refresh rate and resolution all change results. A terminal that's quick on a Mac laptop may rank differently on a Linux desktop.
  • Compositors and vsync. On Linux, X11 versus Wayland and your compositor's settings can add or remove a frame of delay for every terminal.
  • Settings. Font, font size, window size, ligatures, transparency and scrollback length all affect the work being done.
  • Versions. Terminals get faster (and occasionally slower) between releases. A chart from two years ago may not hold.
  • Who ran it. Projects often benchmark the workloads they've optimised for. That's not dishonest, but it isn't neutral either. Our kitty vs Alacritty comparison shows how two fast terminals optimise for different things.

That's why we don't publish a "fastest terminal" ranking. Any number we gave you would depend on our hardware and settings, not yours.

How to run a fair terminal benchmark

  1. Use one machine, one display, and the same font and window size in every terminal.
  2. Turn off transparency, blur and ligatures unless you're specifically testing them.
  3. Close other heavy apps, and plug laptops in so power saving doesn't throttle anything.
  4. Run each test several times and look at the spread, not just the best run.
  5. Test throughput and latency separately, and write down versions and settings.
  6. Then ignore small differences. A few milliseconds or a few percent won't change your day.

Does GPU rendering make a terminal faster?

It helps drawing, especially on large, high-resolution windows, and it keeps a terminal responsive under heavy output. It doesn't guarantee low latency, which depends on how the terminal schedules frames. Our guide to GPU-accelerated terminals goes into what it does and doesn't buy you.

Where Lumen fits

Lumen draws every glyph on the GPU with GPUI and uses Alacritty's terminal core (alacritty_terminal) for parsing. We haven't published benchmark numbers for it. If speed is your top priority, measure it against Alacritty, Ghostty and kitty on your own machine with the steps above. For most people the differences between modern terminals are small, and features decide; our best terminal emulator list compares those.

Questions

What is the fastest terminal emulator?

There's no single answer. Alacritty, Ghostty, kitty and WezTerm all do well, but rankings depend on whether you measure throughput or input latency, and on your hardware and settings.

How do I measure terminal input latency?

Use Typometer, which types characters and times how long each takes to appear, or film the keyboard and screen with a high-speed camera and count frames.

Does vtebench measure latency?

No. vtebench measures how quickly a terminal reads output from the PTY. Its README says it doesn't cover frame rate or latency.

Is Ghostty faster than Alacritty?

Both are fast, and which one wins depends on the test and the machine. Run vtebench and Typometer on your own hardware with the same settings to find out for your setup.

Try Lumen

Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.

curl -fsSL https://lumenshell.dev/install | sh
brew install --cask lumenshell/tap/lumen