Updated on August 13, 2026 by Michael

Code Editor Performance Benchmarks

This page contains documented and repeatable benchmarks comparing Koi Editor with other popular code editors.

All editors are tested on the same hardware and test files, using comparable settings wherever practical. Benchmarks are updated periodically as new editor releases become available.

Unless otherwise noted, syntax highlighting was enabled using each editor's built-in language support. Editors may be omitted when the test file or equivalent functionality is unsupported.

Download raw measurements

Commit 4ed1040 added randomized inter-key delays to Keypress.sh. This prevents editors from benefiting from a fixed synthetic typing cadence and produced results that more closely match observed continuous-typing responsiveness.

Typing latency

Lower latency means the editor responds more quickly to each keypress. Higher latency can make editing feel less responsive, especially when typing continuously in large source files.

All measurements in milliseconds.

Median represents the typical keypress latency, while the percentile metrics capture occasional slower frames that affect perceived responsiveness. Relative P95 values are calculated from the unrounded measurements.

Graphical applications were launched directly from their bundled Mach-O executables. This avoids a repeatable macOS input-to-display latency difference associated with LaunchServices launches, see FAQ: Why are these results different from earlier benchmark versions?.

Single pane displays one view of the test file.

Dual pane displays the same document simultaneously in two editor panes while typing in one pane.

sqlite3.c

Single pane:

sqlite3.png

Editor Median p95 p99 Max Tail Spread vs Fastest (p95)
TextMate 14.4 16.1 17.4 17.7 1.7 1.00x
Koi-b207 14.2 16.3 17.0 17.1 2.0 1.01x
Xcode 14.7 17.2 25.1 28.2 2.6 1.07x
Vim 14.5 17.5 46.7 47.6 3.0 1.09x
Lite XL 13.8 25.4 65.2 74.8 11.6 1.58x
Sublime Text 18.1 30.0 31.5 32.1 11.9 1.86x
VS Code 17.1 35.3 43.9 46.0 18.2 2.19x
Zed 28.6 38.2 42.1 42.4 9.6 2.37x
Neovim 48.7 52.3 53.9 54.0 3.6 3.24x
BBEdit 42.4 74.6 104.5 114.5 32.2 4.63x
Emacs 55.1 85.2 87.0 87.1 30.1 5.28x

Dual pane:

sqlite3_dual.png

Editor Median p95 p99 Max Tail Spread vs Fastest (p95)
Koi-b207 14.0 16.0 17.4 17.4 1.9 1.00x
Lite XL 24.4 27.0 35.0 35.2 2.6 1.69x
Xcode 17.2 27.7 29.4 29.7 10.6 1.74x
Sublime 22.9 29.8 32.8 33.5 6.9 1.87x
Zed 36.7 44.1 49.5 50.3 7.4 2.76x
VS Code 26.4 45.6 51.2 52.4 19.2 2.86x
Vim 43.6 48.0 48.7 48.7 4.4 3.00x
Neovim 49.4 52.4 53.4 53.5 3.0 3.28x
BBEdit 36.1 78.7 110.2 111.2 42.6 4.93x
Emacs 91.4 106.2 108.6 109.5 14.8 6.65x

Notes:

gcc.c

Single pane:

gcc.png

Editor Median p95 p99 Max Tail Spread vs Fastest (p95)
Koi-b207 14.5 16.6 17.3 17.7 2.2 1.00x
Xcode 25.2 27.6 29.5 30.8 2.3 1.66x
Sublime Text 20.2 30.4 31.6 31.6 10.2 1.82x
TextMate 40.7 42.6 43.3 43.5 1.8 2.56x
Vim 43.2 47.8 48.8 48.9 4.6 2.87x
Neovim 49.7 52.9 56.5 57.8 3.2 3.18x
Zed 43.2 57.3 64.8 65.0 14.1 3.44x
Emacs 87.0 118.3 121.3 122.0 31.3 7.11x
Lite XL 18.9 119.8 171.2 201.9 100.9 7.20x
VS Code 27.9 171.9 178.9 181.4 144.0 10.33x
BBEdit 226.8 301.6 307.1 517.8 74.8 18.12x

Dual pane:

gcc_dual.png

Editor Median p95 p99 Max Tail Spread vs Fastest (p95)
Koi-b207 14.6 16.4 17.5 17.7 1.8 1.00x
Lite XL 13.4 32.0 110.3 152.2 18.6 1.95x
Sublime Text 23.7 32.2 35.7 36.1 8.5 1.96x
Xcode 25.1 34.8 36.1 36.8 9.7 2.12x
Vim 44.4 48.6 51.2 51.5 4.2 2.96x
Neovim 50.0 53.6 57.1 57.2 3.6 3.27x
Zed 52.7 70.0 73.9 75.0 17.3 4.26x
VS Code 124.3 172.4 176.1 178.3 48.1 10.51x
Emacs 147.3 177.3 179.7 180.7 30.0 10.81x
BBEdit 251.6 304.1 310.6 524.4 52.4 18.53x

Notes:

Test environment

Component Value
Hardware Mac mini M2 Pro, 16 GB RAM
Operating System macOS 15.7.5
Display 60 Hz
Test files sqlite3.c (151,639 lines), gcc.c (753,821 lines)
Configuration Default settings with syntax highlighting and line numbers enabled. Folding was enabled where supported, some editors automatically adjust features for very large files.

Methodology

Typing latency was measured using Keypress.sh, which records the time between a simulated keypress and the editor presenting the updated frame on screen. Each benchmark consists of 200 measured keypresses, repeated under the same conditions.

Measurements shown are median, P95, P99, maximum latency, and tail spread (P95 – median), which indicates how consistent latency remains under heavier load.

Results were measured on a 60 Hz display, where one refresh interval is approximately 16.7 ms. Since the benchmark measures keypress-to-display latency, values naturally cluster around multiples of the display refresh interval (16.7 ms, 33.3 ms, 50 ms, and so on). Lower latency therefore means the editor more consistently completes processing within fewer display frames.

Editor configurations

Vim config file:

" ~/.vimrc

syntax on

set number
set autoindent
set smartindent
set cindent

set foldmethod=syntax
set foldlevel=99

set complete=.,w,b,u,t,i

set nowrap
set mouse=a

Emacs config file:

;; ~/.emacs.d/init.el

;; Syntax highlighting
(global-font-lock-mode 1)

;; Line numbers
(global-display-line-numbers-mode 1)

;; C mode
(add-to-list 'auto-mode-alist '("\\.c\\'" . c-mode))
(add-to-list 'auto-mode-alist '("\\.h\\'" . c-mode))

;; C indentation
(setq c-default-style "linux")

;; Folding
(add-hook 'c-mode-hook #'hs-minor-mode)

;; No word wrap
(setq-default truncate-lines t)

;; Completion
(setq completion-auto-help 'always)
(setq completion-cycle-threshold nil)

Neovim config file:

-- ~/.config/nvim/init.lua

vim.opt.number = true
vim.opt.wrap = false
vim.opt.mouse = "a"

vim.opt.autoindent = true
vim.opt.smartindent = true
vim.opt.cindent = true

vim.opt.complete = ".,w,b,u,t,i"

vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.opt.foldlevel = 99
vim.opt.foldlevelstart = 99
vim.opt.foldenable = true

vim.api.nvim_create_autocmd("FileType", {
    pattern = { "c", "cpp" },
    callback = function()
        vim.treesitter.start()
    end,
})

Large file performance

Large file performance measures whether an editor can open and navigate very large files while remaining responsive, and records the memory required to keep each file open.

Memory usage and usability

Memory values are shown as main process / additional processes / total where an editor uses multiple processes. A dash indicates that the editor did not meet the benchmark requirements.

Editor 1M lines 5M lines 10M lines 20M lines
Koi-b207 207.6 MB 698.3 MB 1.10 GB 2.32 GB
VS Code 258.1 MB / 1.35 GB / 1.60 GB 928.5 MB / 1.67 GB / 2.60 GB - -
Vim 39.8 MB 170.2 MB - -
Sublime Text 259.6 MB 1.10 GB - -
BBEdit 348.2 MB 1.24 GB - -
Lite XL 672.0 MB 826.6 MB - -
Zed 1.63 GB / 202.5 MB / 1.83 GB 9.03 GB / 4.50 GB / 13.53 GB - -
TextMate - - - -
Xcode - - - -
Neovim - - - -
Emacs - - - -

An editor fails a test if it does not open and become responsive with syntax highlighting working throughout the document within 30 seconds.

Typing latency

P95 latency values for each usable file size.

Editor 1M lines 5M lines 10M lines 20M lines
Koi-b207 19.3 ms 20.5 ms 31.0 ms 37.3 ms
Vim 18.2 ms 18.7 ms 73.0 ms -
Sublime Text 31.6 ms 31.8 ms - -
VS Code 50.6 ms 207.0 ms - -
Lite XL 98.2 ms 129.9 ms - -
Zed 164.9 ms - - -
BBEdit 812.1 ms - - -

Test environment

Component Value
Hardware Mac mini M2 Pro, 16 GB RAM
Operating System macOS 15.7.5
Display 60 Hz
Test files Generated C source code files
File sizes 1M (29 MB), 5M (145 MB), 10M (290 MB), and 20M (580 MB) lines
Configuration Default settings, syntax highlighting enabled where supported. Folding and auto complete disabled in Vim and Neovim.

Methodology

Each test starts with a fresh editor process. The editor is opened with the test file and allowed up to 30 seconds to finish loading and become responsive with syntax highlighting working throughout the document.

The file is then tested by jumping between the beginning and end, scrolling through different regions, moving the cursor, indenting lines, and inserting new lines. An editor is considered usable at a given file size if it remains responsive throughout this process without requiring force quit or becoming practically unusable due to very high latency.

Memory usage is recorded after this interaction and after the editor has settled. Measurements use the Memory value reported by macOS Activity Monitor. For editors using multiple processes, memory is recorded as main process / additional processes / total.

The editor is completely quit and restarted between each file-size test.

Large-file latency tests are performed only for file sizes where the editor passes the responsiveness requirements above. The same methodology described in Typing latency is used with the larger test files.

Editors tested

The benchmark focuses on general-purpose code and text editors available on macOS. IDEs specialized around particular languages or project environments are excluded. C is used for the primary tests because it is widely supported across the editors tested.

Editor Version/Build
Koi 0.1.0-b207
Sublime Text 4200
VS Code 1.117.0
Zed 1.10.3
BBEdit 15.5.3
TextMate 2.0.23
Xcode 26.2
Lite XL 2.1.8
Vim 9.1
Neovim 0.12.4
Emacs 29.4

The versions listed above are the exact versions used for the measurements and are not necessarily the latest available releases.

FAQ

Why are Vim and Neovim tested with syntax-based folding enabled in the typing-latency benchmarks?

For the typing-latency benchmarks, the goal is to compare practical editing configurations rather than the fastest possible text insertion.

Vim and Neovim were tested with syntax highlighting, line numbers, automatic indentation, configured completion sources, and folding enabled. The goal was to retain commonly used editor functionality rather than optimize the benchmark configuration solely for insertion speed.

Disabling syntax-based folding improved typing latency, but also removed functionality that remained enabled in the comparison configuration.

Why compare terminal editors with graphical editors?

These benchmarks measure end-to-end visible responsiveness rather than isolated editor-engine performance.

Terminal and graphical editors use different rendering pipelines, but each editor is measured through its actual user-facing editing interface. Graphical applications are launched directly from their bundled Mach-O executable to avoid the macOS launch-state latency documented above. Vim and Neovim are tested in Apple Terminal.

Were different syntax highlighting implementations used?

Yes.

Each editor was tested using its built-in language support. Different editors use different implementations, including regular-expression syntax highlighters, Tree-sitter, TextMate grammars, and custom lexers.

The benchmarks compare equivalent visible functionality rather than identical internal implementations.

Were folds expanded during testing?

Yes.

Syntax-based folding remained enabled where configured (to trigger the behind-the-scenes fold level computations), but all folds were expanded during typing measurements.

Were the editors warmed up before measurement?

Yes.

Measurements began only after the editor became responsive and the visible region had been fully highlighted. Typing was measured after the initial loading work had completed.

Were all editors configured identically?

No.

The goal is not to force every editor into an identical internal configuration, which is generally not possible. Editors are tested with comparable visible functionality where practical, and benchmark-specific exceptions are documented alongside the affected results.

Features such as fonts, rendering backends, syntax engines, completion, folding, and large-file optimizations differ between editors.

The goal is to compare the editing experience users receive from each editor, not to normalize every implementation detail.

How were the latency statistics calculated?

Each benchmark records 100 keypress appearances and 100 keypress disappearances.

The two lowest and two highest measurements are discarded to reduce the influence of unrelated system activity, leaving 196 samples for the reported statistics.

Median, P95, P99, maximum latency, and tail spread (P95 − median) are calculated from those remaining samples.

Why are these results different from earlier benchmark versions?

The benchmark methodology was updated to use randomized delays between simulated keypresses rather than a fixed typing interval.

Fixed intervals produced unusually low latency measurements in some editors despite noticeably slower responsiveness during normal typing. Randomizing the delay better represents real typing patterns and exposes work that editors may defer or debounce between keypresses.

Graphical editors are also now launched directly from their bundled Mach-O executables to avoid the macOS launch-state latency documented in Investigating macOS input-to-display latency.

Earlier results should therefore not be compared directly with the current measurements.

Final notes