Performance
Benchmarks
BUI's published numbers with their full context: start time and battery cost for every API, frame times, Rust against gpui, and JavaScript startup and animation.
- Windows 11
- Linux
First frame40× sooner
~5ms
BUI~5 msgpui-fast~200 ms3000 animated cells
Start, same code5.8× faster start
40ms
BUI40 msgpui231 msthe same gpui code, compiled three ways
CPU per frame2.8× less CPU
11.6ms
BUI11.6 msgpui-fast31.9 ms + GPU3000 cells, GPU renderer
Idle CPU per minuteNothing while idle
0ms
BUI0 msgpui743 msit sleeps until something changes
First frame
Rust, 3000 animated cells: from launch to the first frame on screen
Lower is better
40×sooner on screen than gpui-fast
- BUI
- Others
- blenderuiGPU renderer~5 ms
- blenderuiCPU renderer~5 ms
- gpui-fast~200 ms40× more
- gpui~220 ms44× more
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS | 59.9 | 57.6 | 31.5 | 19.9 |
| CPU per frame | 11.6 ms | 22.0 ms | 31.9 ms + GPU | 50.5 ms + GPU |
| RAM | 40 MB | 30 MB | 65 MB | 77 MB |
| First frame | ~5 ms | ~5 ms | ~200 ms | ~220 ms |
| Idle CPU | 0 % | 0–0.9 % | 0–0.4 % | 0.9–1.4 % |
gpui-fast's heavy-scene frame rate varies between sessions on this laptop (30–60 fps), so compare within one session.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
Start time, same gpui code
One gpui-syntax file compiled against each library; median of 10 launches
Lower is better
5.7×faster start than gpui-fast
- BUI
- Others
- blenderuiCPU renderer40 ms
- blenderuiGPU renderer43 ms
- gpui-fastGPU226 ms5.7× more
- gpuiZed's, GPU231 ms5.8× more
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| Same gpui code | Renderer | Start time | CPU used to start | Memory (idle) | Idle CPU per minute |
|---|---|---|---|---|---|
| blenderui | CPU | 40 ms | 27 ms | 15 MB | 0 ms |
| blenderui | GPU | 43 ms | 60 ms | 31 MB | 2.1 ms |
| gpui | GPU | 231 ms | 226 ms | 29 MB | 743 ms |
| gpui-fast | GPU | 226 ms | 217 ms | 31 MB | 2.5 ms |
gpui has no form widgets, so there the controls are styled divs. Memory doesn't count GPU memory.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
CPU per frame
Rust, 3000 animated cells; gpui's numbers don't include its GPU time
Lower is better
2.8×less CPU per frame than gpui-fast
- BUI
- Others
- blenderuiGPU renderer11.6 ms
- blenderuiCPU renderer22.0 ms
- gpui-fast31.9 ms + GPU2.8× more
- gpui50.5 ms + GPU4.4× more
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS | 59.9 | 57.6 | 31.5 | 19.9 |
| CPU per frame | 11.6 ms | 22.0 ms | 31.9 ms + GPU | 50.5 ms + GPU |
| RAM | 40 MB | 30 MB | 65 MB | 77 MB |
| First frame | ~5 ms | ~5 ms | ~200 ms | ~220 ms |
| Idle CPU | 0 % | 0–0.9 % | 0–0.4 % | 0.9–1.4 % |
gpui-fast's heavy-scene frame rate varies between sessions on this laptop (30–60 fps), so compare within one session.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
RAM
Rust, 3000 animated cells
Lower is better
2.6×less RAM than gpui (CPU renderer)
- BUI
- Others
- blenderuiGPU renderer40 MB
- blenderuiCPU renderer30 MB
- gpui-fast65 MB2.2× more
- gpui77 MB2.6× more
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS | 59.9 | 57.6 | 31.5 | 19.9 |
| CPU per frame | 11.6 ms | 22.0 ms | 31.9 ms + GPU | 50.5 ms + GPU |
| RAM | 40 MB | 30 MB | 65 MB | 77 MB |
| First frame | ~5 ms | ~5 ms | ~200 ms | ~220 ms |
| Idle CPU | 0 % | 0–0.9 % | 0–0.4 % | 0.9–1.4 % |
gpui-fast's heavy-scene frame rate varies between sessions on this laptop (30–60 fps), so compare within one session.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
Ryzen 7 5800U laptop, Windows 11, on AC power. Measured before the latest features (ImGui, the Linux GPU renderer, the Blender search and expression code) landed. Your numbers will differ; the tools ship with the repo. gpui figures don't include their GPU time.
BUI is fast where it matters to people: it opens quickly, it sits at zero CPU while you’re not touching it, and it stays smooth when thousands of things move. Here are the numbers, with everything you need to judge them.
Start time and battery
What was measured: the same small settings window (a label, a text field, a checkbox, a slider and a button), written each of the five ways, from bench/apps. Each ran on BUI’s CPU renderer (the default) and on its GPU renderer (BUI_GPU=1).
The last rows are one gpui-syntax source file, settings.rs, compiled unchanged against blenderui, Zed’s gpui and gpui-fast. gpui has no form widgets, so there the controls are styled divs.
How: the median of 10 launches, from process start until the first frame is on screen, with Python 3.14 and Node 22.
Start time, every way in
The same small settings window written five ways; median of 10 launches
Lower is better
- CPU renderer
- GPU renderer
- RustHTML + CSS
- CPU renderer: 38 ms
- GPU renderer: 42 ms
- JavaScriptReact, Node.js
- CPU renderer: 94 ms
- GPU renderer: 99 ms
- Blender componentsPython
- CPU renderer: 112 ms
- GPU renderer: 116 ms
- tkinter syntaxPython
- CPU renderer: 139 ms
- GPU renderer: 159 ms
- Qt syntaxPython
- CPU renderer: 156 ms
- GPU renderer: 161 ms
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| App | Renderer | Start time | CPU used to start | Memory (idle) | Idle CPU per minute |
|---|---|---|---|---|---|
| Rust (HTML + CSS) | CPU | 38 ms | 27 ms | 13 MB | 0 ms |
| GPU | 42 ms | 61 ms | 31 MB | 1.8 ms | |
| JavaScript (React, Node.js) | CPU | 94 ms | 100 ms | 48 MB | 68 ms |
| GPU | 99 ms | 131 ms | 60 MB | 71 ms | |
| Blender components (Python) | CPU | 112 ms | 86 ms | 23 MB | 0 ms |
| GPU | 116 ms | 125 ms | 32 MB | 1.7 ms | |
| tkinter syntax (Python) | CPU | 139 ms | 112 ms | 25 MB | 0.2 ms |
| GPU | 159 ms | 157 ms | 43 MB | 2.4 ms | |
| Qt syntax (Python) | CPU | 156 ms | 123 ms | 27 MB | 0 ms |
| GPU | 161 ms | 160 ms | 36 MB | 1.2 ms | |
| Same gpui code: blenderui | CPU | 40 ms | 27 ms | 15 MB | 0 ms |
| blenderui | GPU | 43 ms | 60 ms | 31 MB | 2.1 ms |
| gpui | GPU | 231 ms | 226 ms | 29 MB | 743 ms |
| gpui-fast | GPU | 226 ms | 217 ms | 31 MB | 2.5 ms |
Python 3.14 and Node 22. The last rows are one gpui-syntax source file (bindings/rust/bench/common/settings.rs) compiled unchanged against blenderui, gpui and gpui-fast; gpui has no form widgets, so there the controls are styled divs. Battery cost is the CPU time an app causes; memory doesn't count GPU memory.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
| App | Renderer | Start time | CPU used to start | Memory (idle) | Idle CPU per minute |
|---|---|---|---|---|---|
| Rust (HTML + CSS) | CPU | 38 ms | 27 ms | 13 MB | 0 ms |
| GPU | 42 ms | 61 ms | 31 MB | 1.8 ms | |
| JavaScript (React, Node.js) | CPU | 94 ms | 100 ms | 48 MB | 68 ms |
| GPU | 99 ms | 131 ms | 60 MB | 71 ms | |
| Blender components (Python) | CPU | 112 ms | 86 ms | 23 MB | 0 ms |
| GPU | 116 ms | 125 ms | 32 MB | 1.7 ms | |
| tkinter syntax (Python) | CPU | 139 ms | 112 ms | 25 MB | 0.2 ms |
| GPU | 159 ms | 157 ms | 43 MB | 2.4 ms | |
| Qt syntax (Python) | CPU | 156 ms | 123 ms | 27 MB | 0 ms |
| GPU | 161 ms | 160 ms | 36 MB | 1.2 ms | |
| Same gpui code: blenderui | CPU | 40 ms | 27 ms | 15 MB | 0 ms |
| blenderui | GPU | 43 ms | 60 ms | 31 MB | 2.1 ms |
| gpui | GPU | 231 ms | 226 ms | 29 MB | 743 ms |
| gpui-fast | GPU | 226 ms | 217 ms | 31 MB | 2.5 ms |
Python 3.14 and Node 22. The last rows are one gpui-syntax source file (bindings/rust/bench/common/settings.rs) compiled unchanged against blenderui, gpui and gpui-fast; gpui has no form widgets, so there the controls are styled divs. Battery cost is the CPU time an app causes; memory doesn't count GPU memory.
What it means:
- On the same code, blenderui shows its first frame about 5× sooner than gpui and gpui-fast, spends about 8× less CPU getting there, and on the CPU renderer uses half the memory.
- Idle, gpui keeps about 1.2% of a core busy. blenderui uses none.
- The GPU renderer starts a little slower and uses more memory (the GPU device). It pays off on large, animated scenes, below.
Start time, same gpui code
One gpui-syntax file compiled against each library; median of 10 launches
Lower is better
5.7×faster start than gpui-fast
- BUI
- Others
- blenderuiCPU renderer40 ms
- blenderuiGPU renderer43 ms
- gpui-fastGPU226 ms5.7× more
- gpuiZed's, GPU231 ms5.8× more
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| Same gpui code | Renderer | Start time | CPU used to start | Memory (idle) | Idle CPU per minute |
|---|---|---|---|---|---|
| blenderui | CPU | 40 ms | 27 ms | 15 MB | 0 ms |
| blenderui | GPU | 43 ms | 60 ms | 31 MB | 2.1 ms |
| gpui | GPU | 231 ms | 226 ms | 29 MB | 743 ms |
| gpui-fast | GPU | 226 ms | 217 ms | 31 MB | 2.5 ms |
gpui has no form widgets, so there the controls are styled divs. Memory doesn't count GPU memory.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
Idle CPU, same gpui code
CPU time per minute while the window sits idle
Lower is better
0 msidle CPU on the CPU renderer: it sleeps
- BUI
- Others
- blenderuiCPU renderer0 ms
- blenderuiGPU renderer2.1 ms
- gpui-fastGPU2.5 ms1.2× more
- gpuiZed's, GPU743 ms354× more
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| Same gpui code | Renderer | Start time | CPU used to start | Memory (idle) | Idle CPU per minute |
|---|---|---|---|---|---|
| blenderui | CPU | 40 ms | 27 ms | 15 MB | 0 ms |
| blenderui | GPU | 43 ms | 60 ms | 31 MB | 2.1 ms |
| gpui | GPU | 231 ms | 226 ms | 29 MB | 743 ms |
| gpui-fast | GPU | 226 ms | 217 ms | 31 MB | 2.5 ms |
gpui has no form widgets, so there the controls are styled divs. Memory doesn't count GPU memory.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
How battery cost is measured: laptops can’t report energy per app, so the benchmark uses CPU time as a proxy. It counts the CPU an app spends starting up, and the CPU it uses over 20 seconds while the window sits idle: that’s what drains a battery while an app is open. BUI redraws only when something changes and otherwise sleeps, so idle use is near zero on either renderer.
Fine print: Node’s event loop accounts for the JavaScript idle figure. Python’s times include starting the interpreter. Memory doesn’t count GPU memory.
Frame times
What was measured: the full Blender components demo (520×900), from Python and C.
Frame cost
Python and C, the full component demo (520×900)
Lower is better
0.05 msfor a hover or scrub frame
- Complete frameeverything redrawn~0.7 ms
- Input to screennative window~0.06 ms
- Hover or scrubdamage only~0.05 ms
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| Frame | Time |
|---|---|
| Complete frame (everything redrawn) | ~0.7 ms |
| Hover or number-scrub frame (damage only) | ~0.05 ms |
| Native window: input event → on screen | ~0.06 ms |
Dear ImGui's demo window with every section open (27k triangles, 1280×800) is a full software redraw of about 5–8 ms.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
Rust against gpui and gpui-fast
What was measured: a 1000×800 window filled with N rounded, numbered cells, built with the same element tree in every framework. In this table, every cell changes every frame (the worst case), with 3,000 cells. All apps ran in the same session.
Frames per second
Rust, 3000 animated cells, same session
Higher is better
3×the frame rate of gpui
- BUI
- Others
- blenderuiGPU renderer59.9 fps
- blenderuiCPU renderer57.6 fps
- gpui-fast31.5 fps1.9× fewer
- gpui19.9 fps3× fewer
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS | 59.9 | 57.6 | 31.5 | 19.9 |
| CPU per frame | 11.6 ms | 22.0 ms | 31.9 ms + GPU | 50.5 ms + GPU |
| RAM | 40 MB | 30 MB | 65 MB | 77 MB |
| First frame | ~5 ms | ~5 ms | ~200 ms | ~220 ms |
| Idle CPU | 0 % | 0–0.9 % | 0–0.4 % | 0.9–1.4 % |
gpui-fast's heavy-scene frame rate varies between sessions on this laptop (30–60 fps), so compare within one session.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
CPU per frame
Rust, 3000 animated cells; gpui's numbers don't include its GPU time
Lower is better
2.8×less CPU per frame than gpui-fast
- BUI
- Others
- blenderuiGPU renderer11.6 ms
- blenderuiCPU renderer22.0 ms
- gpui-fast31.9 ms + GPU2.8× more
- gpui50.5 ms + GPU4.4× more
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS | 59.9 | 57.6 | 31.5 | 19.9 |
| CPU per frame | 11.6 ms | 22.0 ms | 31.9 ms + GPU | 50.5 ms + GPU |
| RAM | 40 MB | 30 MB | 65 MB | 77 MB |
| First frame | ~5 ms | ~5 ms | ~200 ms | ~220 ms |
| Idle CPU | 0 % | 0–0.9 % | 0–0.4 % | 0.9–1.4 % |
gpui-fast's heavy-scene frame rate varies between sessions on this laptop (30–60 fps), so compare within one session.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS | 59.9 | 57.6 | 31.5 | 19.9 |
| CPU per frame | 11.6 ms | 22.0 ms | 31.9 ms + GPU | 50.5 ms + GPU |
| RAM | 40 MB | 30 MB | 65 MB | 77 MB |
| First frame | ~5 ms | ~5 ms | ~200 ms | ~220 ms |
| Idle CPU | 0 % | 0–0.9 % | 0–0.4 % | 0.9–1.4 % |
gpui-fast's heavy-scene frame rate varies between sessions on this laptop (30–60 fps), so compare within one session.
More results, at 100 and 1,000 cells:
Uncapped frame rate
Frames per second with vsync off, as the scene grows
Higher is better
- blenderui GPU
- blenderui CPU
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS, 1000 animated cells | 60 | 60 | 49.2 | 36.4 |
| CPU per frame, 1000 / 100 cells | 4.7 / 1.2 ms | 10.2 / 4.6 ms | 20.5 / 2.7 ms + GPU | 27.7 / 4.7 ms + GPU |
| Uncapped FPS, 100 / 1000 / 3000 cells | 1491 / 309 / 94 | 649 / 202 / 76 | - | - |
| RAM, 1000 / 100 cells | 35 / 28 MB | 24 / 21 MB | 45 / 47 MB | 47 / 40 MB |
| GPU memory | 19–22 MB | none | 19–24 MB | 16–21 MB |
The GPU renderer is off by default: Application::new().gpu(true), tk.Tk(gpu=True), bui.set_gpu(True) or BUI_GPU=1. Its shaders evaluate the software raster's formulas: 10 of 172,800 pixels differ by more than 3/255.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
| blenderui (GPU) | blenderui (CPU) | gpui-fast | gpui | |
|---|---|---|---|---|
| FPS, 1000 animated cells | 60 | 60 | 49.2 | 36.4 |
| CPU per frame, 1000 / 100 cells | 4.7 / 1.2 ms | 10.2 / 4.6 ms | 20.5 / 2.7 ms + GPU | 27.7 / 4.7 ms + GPU |
| Uncapped FPS, 100 / 1000 / 3000 cells | 1491 / 309 / 94 | 649 / 202 / 76 | - | - |
| RAM, 1000 / 100 cells | 35 / 28 MB | 24 / 21 MB | 45 / 47 MB | 47 / 40 MB |
| GPU memory | 19–22 MB | none | 19–24 MB | 16–21 MB |
The GPU renderer is off by default: Application::new().gpu(true), tk.Tk(gpu=True), bui.set_gpu(True) or BUI_GPU=1. Its shaders evaluate the software raster's formulas: 10 of 172,800 pixels differ by more than 3/255.
What it means:
- The GPU renderer beats gpui-fast on every measurement. It uses 2.2× less CPU per frame at 100 cells, 4.4× less at 1,000 and 2.8× less at 3,000, where it also runs at nearly twice the frame rate. It uses less RAM and the same GPU memory.
- The GPU renderer halves blenderui’s own CPU cost (22.0 to 11.6 ms at 3,000 cells). What stays on the CPU is the Rust side: cascade, layout and the paint list.
- The CPU raster stays the lightest on memory and remains the default.
How: each app measures its own CPU cycles across all threads (Windows’ QueryProcessCycleTime), its frames and its memory, over a 10-second window after a 3-second warm-up. The runner adds GPU utilisation and GPU memory from Windows’ performance counters, because GPU work isn’t process CPU time. “+ GPU” means gpui’s numbers exclude its GPU work, so read them with the GPU columns in the full results.
Fine print: one laptop, one 60 Hz display (which caps every app), an integrated GPU.
JavaScript and React
Startup
What was measured: a small React app (a counter) that quits as soon as its first frame is on screen. Each figure is the median of 12 launches after a warm-up launch (node bench/startup.js).
JavaScript: first frame
A small React app, median of 12 launches
Lower is better
7.3 MBsingle executable with QuickJS
- QuickJS executablebui build68 ms
- Bun executablebui build --bun79 ms
- Bunbun app.js80 ms
- Node.jsnode app.js108 ms
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| First frame | Launch to exit | RAM at first frame | What you ship | |
|---|---|---|---|---|
| QuickJS executable (bui build) | 68 ms | 104 ms | 19 MB | 7.3 MB |
| Bun executable (bui build --bun) | 79 ms | 147 ms | 35 MB | 114 MB |
| Bun (bun app.js) | 80 ms | 152 ms | 35 MB | Bun + your app |
| Node.js (node app.js) | 108 ms | 187 ms | 45 MB | Node + your app |
| Rust (for reference: the benchmark app) | 5 ms | ~92 ms | 3.5 MB |
First frame is measured from the runtime's start. Launch to exit is wall time measured from outside, including process creation and teardown. The QuickJS executable's size was re-measured on 2026-11-06, with the image decoders and the dist build profile (fat LTO, section GC): 7,273,719 bytes; the times are from the earlier run.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
| First frame | Launch to exit | RAM at first frame | What you ship | |
|---|---|---|---|---|
| QuickJS executable (bui build) | 68 ms | 104 ms | 19 MB | 7.3 MB |
| Bun executable (bui build --bun) | 79 ms | 147 ms | 35 MB | 114 MB |
| Bun (bun app.js) | 80 ms | 152 ms | 35 MB | Bun + your app |
| Node.js (node app.js) | 108 ms | 187 ms | 45 MB | Node + your app |
| Rust (for reference: the benchmark app) | 5 ms | ~92 ms | 3.5 MB |
First frame is measured from the runtime's start. Launch to exit is wall time measured from outside, including process creation and teardown. The QuickJS executable's size was re-measured on 2026-11-06, with the image decoders and the dist build profile (fat LTO, section GC): 7,273,719 bytes; the times are from the earlier run.
Animation
What was measured: the same scene as the Rust table, in one mode: one cell changes per frame, like a hover or a ticking value. GPU renderer, medians of 3 runs, React’s production build. CPU is the whole process, counted with the cycle counter as for Rust.
- Plain JS uses
@blender-ui/native. - React with signals passes the changing values as signals, so the grid renders once.
- React with state re-renders the grid every frame.
JavaScript: CPU per frame, 3,000 cells
One cell changes per frame; GPU renderer
Lower is better
- Plain JS
- React + signals
- React + state
- QuickJS
- Plain JS: 16.3 ms
- React + signals: 14.9 ms
- React + state: 51 ms
- Bun 1.4
- Plain JS: 13.1 ms
- React + signals: 13.3 ms
- React + state: 20.8 ms
- Node 22
- Plain JS: 14.4 ms
- React + signals: 14 ms
- React + state: 18.9 ms
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| 3,000 cells | FPS | CPU per frame | RAM |
|---|---|---|---|
| Rust | 59.6 | 12.0 ms | 43 MB |
| QuickJS: plain JS / React with signals / React with state | 59.1 / 58.7 / 19.7 | 16.3 / 14.9 / 51.0 ms | 56 / 61 / 67 MB |
| Bun 1.4: plain JS / React with signals / React with state | 58.8 / 58.4 / 55.8 | 13.1 / 13.3 / 20.8 ms | 80 / 85 / 118 MB |
| Node 22: plain JS / React with signals / React with state | 55.8 / 56.7 / 54.8 | 14.4 / 14.0 / 18.9 ms | 88 / 93 / 121 MB |
Plain JS uses @blender-ui/native; React with signals renders the grid once; React with state re-renders it every frame. React's production build throughout.
Source: README.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
| 3,000 cells | FPS | CPU per frame | RAM |
|---|---|---|---|
| Rust | 59.6 | 12.0 ms | 43 MB |
| QuickJS: plain JS / React with signals / React with state | 59.1 / 58.7 / 19.7 | 16.3 / 14.9 / 51.0 ms | 56 / 61 / 67 MB |
| Bun 1.4: plain JS / React with signals / React with state | 58.8 / 58.4 / 55.8 | 13.1 / 13.3 / 20.8 ms | 80 / 85 / 118 MB |
| Node 22: plain JS / React with signals / React with state | 55.8 / 56.7 / 54.8 | 14.4 / 14.0 / 18.9 ms | 88 / 93 / 121 MB |
Plain JS uses @blender-ui/native; React with signals renders the grid once; React with state re-renders it every frame. React's production build throughout.
| 1,000 cells | FPS | CPU per frame | RAM |
|---|---|---|---|
| Rust | 60 | 4.8 ms | 32 MB |
| QuickJS: plain JS / React with signals / React with state | 60 / 60 / 56.8 | 6.0 / 5.6 / 17.8 ms | 38 / 40 / 43 MB |
| Bun: plain JS / React with signals / React with state | 60 / 60 / 60 | 5.2 / 5.2 / 7.5 ms | 58 / 63 / 81 MB |
| Node: plain JS / React with signals / React with state | 60 / 60 / 60 | 5.6 / 5.6 / 6.9 ms | 68 / 71 / 97 MB |
What it means:
- JavaScript costs little over Rust: 0.4–2.4 ms per frame, for sending changes to BUI’s UI thread.
- Signals make React as cheap as the plain API: the component doesn’t re-render.
- QuickJS starts fastest and uses the least memory, from a 7 MB file. It has no JIT, so re-rendering a 3,000-element list every frame drops it to 20 FPS. Keep big lists on signals, or build with
--bun.
React and Svelte, side by side
What was measured: the same scenes from @blender-ui/react and @blender-ui/svelte, in one session, runs interleaved (bench/cells.js --react | --svelte [--signals], bench/startup.js [--svelte]). This session’s machine ran every variant at 26–29 FPS, so compare these rows with each other, not with the tables above. Besides CPU per frame (mostly BUI’s own rendering here), cells.js reports the JavaScript cost of one update alone.
React vs Svelte: JavaScript per update, 3,000 cells
One cell changes; the framework applies it and sends it to the UI thread; median of 3 sessions of 500
Lower is better
- Plain JS
- React + signals
- Svelte + signals
- Svelte (runes)
- Node 26
- Plain JS: 14.1 µs
- React + signals: 23.3 µs
- Svelte + signals: 16.8 µs
- Svelte (runes): 65.3 µs
- Bun 1.4
- Plain JS: 12.6 µs
- React + signals: 17 µs
- Svelte + signals: 19 µs
- Svelte (runes): 75.7 µs
- QuickJS
- Plain JS: 28.1 µs
- React + signals: 40.2 µs
- Svelte + signals: 35.6 µs
- Svelte (runes): 790 µs
Open benchClose benchRyzen 7 5800U laptop, Windows 11, on AC power
| 3,000 cells | CPU per frame | RAM | JS heap | JavaScript per update |
|---|---|---|---|---|
| Node 26: plain JS | 37.0 ms | 92 MB | 7.6 MB | 14 µs |
| Node 26: React with signals / with state | 37.6 / 38.1 ms | 100 / 166 MB | 12.4 / 19.4 MB | 23 µs / 5.2 ms |
| Node 26: Svelte with signals / runes | 39.0 / 39.4 ms | 116 / 117 MB | 20.6 / 24.8 MB | 17 / 65 µs |
| Bun 1.4: plain JS | 37.4 ms | 81 MB | 2.7 MB | 13 µs |
| Bun 1.4: React with signals / with state | 38.4 ms / (see note) | 87 / 111 MB | 6.1 / 11.7 MB | 17 µs / 8.6 ms |
| Bun 1.4: Svelte with signals / runes | 36.8 / 35.9 ms | 97 / 98 MB | 10.3 / 10.2 MB | 19 / 76 µs |
| QuickJS: plain JS | 38.6 ms | 59 MB | 28 µs | |
| QuickJS: React with signals / with state | 37.8 ms / (see note) | 60 MB | 40 µs / 76 ms | |
| QuickJS: Svelte with signals / runes | 38.5 / 37.0 ms | 75 / 75 MB | 36 / 790 µs |
Every variant ran at 26–29 FPS in this session (the machine, not the code), so CPU per frame is mostly BUI's own rendering and differs within noise; the last column is the JavaScript cost of one update alone (500 back to back, each applied and sent to the UI thread). Svelte with signals passes BUI signals as values, which bind their nodes: writes skip Svelte, as React's signal props skip React. Svelte with runes pays Svelte's own flush, which walks the component's effects (3,000 here). React with state on Bun and QuickJS: its 500 back-to-back re-renders (8.6 and 76 ms each) overran the warm-up, so its frame numbers from this session aren't valid.
Source: docs/javascript.md#performance · Ryzen 7 5800U laptop, Windows 11, on AC power
| 3,000 cells | RAM (before / after) | JS heap (before / after) | JavaScript per update (before / after) |
|---|---|---|---|
| Node 26: Svelte runes | 123 / 117 MB | 21.7 / 24.8 MB | 85 / 65 µs |
| Node 26: Svelte with signals | 123 / 116 MB | 22.2 / 20.6 MB | 87 / 17 µs |
| Bun 1.4: Svelte runes | 102 / 98 MB | 10.9 / 10.2 MB | 78 / 76 µs |
| Bun 1.4: Svelte with signals | 102 / 97 MB | 11.4 / 10.3 MB | 86 / 19 µs |
| QuickJS: Svelte runes | 76 / 75 MB | 790 / 790 µs | |
| QuickJS: Svelte with signals | 76 / 75 MB | 793 / 36 µs |
Before: signals as stores ($style), Svelte's own update functions through the DOM, Map attributes. JS heap is sampled without a forced GC, so it includes garbage.
| First frame | React | Svelte | Svelte before | RAM at first frame (React / Svelte) |
|---|---|---|---|---|
| QuickJS executable (bui build, 6.9 MB either way) | 93 ms | 89 ms | 81 ms | 20.4 / 20.4 MB |
| Bun executable (bui build --bun) | 106 ms | 90 ms | 94 ms | 37.8 / 38.8 MB |
| Bun (bun --preload …/register app.js) | 107 ms | 121 ms | 203 ms | 36.5 / 40.2 MB |
| Node.js (node --import …/register app.js) | 125 ms | 135 ms | 393 ms | 52.1 / 55.4 MB |
On Node.js and Bun, register now serves Svelte's runtime bundled (once, with Bun, into node_modules/.cache) and compiled components from the cache; before, Svelte's runtime loaded from about 90 source modules. The React and Svelte columns ran one after the other, not interleaved. Bun sometimes crashes when a React app quits (after its first frame; 5 of 12 launches here, 11 of 12 for the Bun executable), a bug that predates this work; those launches count for first frame but not for exit time.
- Svelte with signals costs what React with signals does: a BUI signal passed as a value binds its node, so an update skips Svelte entirely (17–36 µs, against 17–40 µs for React).
- Svelte with runes pays Svelte’s flush, which walks the component’s effects: 65–76 µs on Node.js and Bun, 790 µs on QuickJS (no JIT) for 3,000 cells. Per frame, that’s within the noise of BUI’s rendering.
- Memory: Svelte keeps 10–17 MB more than React with signals at 3,000 cells. A heap snapshot puts it in Svelte’s own effects, closures and each-block items (about 1.9 KB per cell); BUI’s nodes are the same objects for both.
- Startup: with its runtime bundled, a Svelte app reaches its first frame within 10–15 ms of a React one on Node.js and Bun (it was 0.1–0.3 s later), and as fast as React’s when built with
bui build.
Vue, next to React and Svelte
What was measured: @blender-ui/vue in a second session, with React and Svelte run again for comparison (bench/cells.js --vue [--isolate], bench/startup.js --vue). Every variant ran at 49–56 FPS here, so compare these rows with each other, not with the tables above.
| 3,000 cells | FPS | RAM | JS heap | JavaScript per update |
|---|---|---|---|---|
| Node 26: React with state | 51.0 | 228 MB | 45 MB | 3.1 ms |
| Node 26: Svelte with runes | 54.9 | 115 MB | 22 MB | 50 µs |
| Node 26: Vue, state in the root component | 54.7 | 260 MB | 44 MB | 5.4 ms |
| Node 26: Vue, cell 0 a component of its own | 53.9 | 112 MB | 21 MB | 25 µs |
| Bun 1.4: React with state | 53.6 | 118 MB | 8 MB | 3.9 ms |
| Bun 1.4: Svelte with runes | 53.4 | 98 MB | 10 MB | 48 µs |
| Bun 1.4: Vue, state in the root component | 53.4 | 142 MB | 16 MB | 6.7 ms |
| Bun 1.4: Vue, cell 0 a component of its own | 56.0 | 107 MB | 11 MB | 27 µs |
This session's machine ran every variant at 49–56 FPS, so compare these rows with each other, not with the 2026-11-06 tables. With the state in the root component Vue re-runs the render function and compares the 3,000 cells, as React does; with the changing cell in a component of its own, only that component re-renders. Vue applies updates in a microtask, so JavaScript per update includes the nextTick hop. CPU per frame is left out: for Vue with state in the root on Bun it varied between runs (80%, 45% and 50% of a core, against a steady ~100% for the others). There is no signals row: a BUI signal binds an attribute or a style in a Vue template, not text.
| First frame | React | Vue | RAM at first frame (React / Vue) |
|---|---|---|---|
| QuickJS executable (bui build, 6.4 / 6.5 MB) | 43 ms | 66 ms | 14.5 / 17.5 MB |
| Bun executable (bui build --bun) | 46 ms | 77 ms | 29.9 / 40.3 MB |
| Bun (bun --preload …/register app.js) | 58 ms | 101 ms | 34.7 / 48.7 MB |
| Node.js (node --import …/register app.js) | 72 ms | 125 ms | 43.7 / 56.3 MB |
Vue's SFC compiler is most of its size, so register caches compiled components in node_modules/.cache/@blender-ui/vue, and a cached start never loads its SFC compiler (vue/compiler-sfc): before the cache Node.js took 209 ms and Bun 189 ms. The executables bundle compiled components and don't use the cache. The React and Vue columns ran one after the other, not interleaved.
- State in the root component re-renders everything, as in React: Vue runs the render function and compares the 3,000 cells, 5.4–6.7 ms per update. With the changing cell in a component of its own, only that component re-renders: 25–27 µs and 107–112 MB, in line with Svelte’s runes.
- Startup: a cached start never loads Vue’s SFC compiler (
vue/compiler-sfc), which took Node.js from 209 to 125 ms and Bun from 189 to 101 ms. The standalone executables bundle compiled components and start in 66 and 77 ms.
Linux: start time and battery
The same small settings window written each of the five ways (see bench/apps), on the CPU renderer and the GPU renderer.
| Renderer | Start time | CPU used to start | Memory (idle) | Idle CPU per minute | |
|---|---|---|---|---|---|
| Rust (HTML + CSS) | CPU | 32 ms | 13 ms | 17 MB | 0.2 ms |
| GPU | 61 ms | 60 ms | 59 MB | 0 ms | |
| JavaScript (React, Node.js) | CPU | 112 ms | 119 ms | 64 MB | 0.5 ms |
| GPU | 101 ms | 120 ms | 106 MB | 1.1 ms | |
| Blender components (Python) | CPU | 90 ms | 87 ms | 27 MB | 0.3 ms |
| GPU | 96 ms | 97 ms | 68 MB | 0 ms | |
| tkinter syntax (Python) | CPU | 145 ms | 141 ms | 36 MB | 0 ms |
| GPU | 147 ms | 144 ms | 71 MB | 0 ms | |
| Qt syntax (Python) | CPU | 133 ms | 129 ms | 30 MB | 0 ms |
| GPU | 137 ms | 139 ms | 72 MB | 0 ms | |
| Same gpui code: blenderui | CPU | 10 ms | 9 ms | 17 MB | 0 ms |
| GPU | 23 ms | 23 ms | 59 MB | 0 ms |
Includes the Linux GPU start-up work from pull request #10 (the OpenGL device is created on a worker thread, so the first frame no longer waits for the driver, and an idle window switches to the GPU when it is ready). Gpui itself was not run on Linux. CPU time is all threads (/proc schedstat), memory is resident memory (VmRSS) and does not count GPU memory.
- On the GPU renderer the device starts on a worker thread, so the first frame no longer waits for the OpenGL driver: Rust opens in 61 ms, and the Python APIs in about 100 to 150 ms.
- An idle window switches to the GPU as soon as it is ready and releases its CPU frame buffers, so idle CPU stays at about zero.
Linux: frame times
| Time / value | |
|---|---|
| Python, full components demo (520×900): complete frame | 1.38 ms |
| Python: hover frame (damage only) | 0.059 ms |
| Rust 3,000 cells, GPU: FPS / CPU per frame / RAM | 25.6 / 21.7 ms / 78 MB |
| Rust 3,000 cells, GPU: first frame / idle CPU | ~5 ms / 0.1 % |
| Rust 3,000 cells, CPU: FPS / CPU per frame / RAM | 20.1 / 30.9 ms / 35 MB |
| Rust 3,000 cells, CPU: first frame / idle CPU | ~6 ms / 0.1 % |
The X11 loop sleeps 16.7 ms after each frame, so each frame takes its render time plus 16.7 ms and the animation stays below 60 FPS; the frame rate is set by that sleep, not by rendering.
Linux: JavaScript
| First frame | Launch to exit | RAM at first frame | |
|---|---|---|---|
| Node.js (React) | 111 ms | 204 ms | 56.5 MB |
| Node.js (Svelte) | 256 ms | - | 80.0 MB |
| Rust, for reference (CPU) | ~4 ms | 32 ms to ready | - |
Bun is not installed on this machine, so the Bun and QuickJS executables were not measured. The Svelte row is the median of 8 launches.
| FPS | CPU per frame | RAM | |
|---|---|---|---|
| 3,000 cells, Rust | 26.7 | 20.1 ms | 78 MB |
| 3,000 cells, Node 24: plain JS / React with signals / React with state | 24.4 / 25.6 / 25.4 | 23.9 / 22.1 / 27.6 ms | 140 / 149 / 278 MB |
| 1,000 cells, Rust | 40.1 | 7.8 ms | 68 MB |
| 1,000 cells, Node 24: plain JS / React with signals / React with state | 40.0 / 39.6 / 39.6 | 8.2 / 8.5 / 10.4 ms | 116 / 122 / 192 MB |
JavaScript adds 0.4 to 0.7 ms per frame at 1,000 cells. With signals, React costs the same as plain JS; React with state renders the grid again every frame and uses about twice the memory.
| CPU per frame | RAM | JavaScript per update | |
|---|---|---|---|
| Plain JS | 29.8 ms | 95 MB | 17 µs |
| React with signals | 30.2 ms | 105 MB | 31 µs |
| Svelte with signals (as values) | 29.9 ms | 133 MB | 22 µs |
| Svelte with runes | 30.5 ms | 133 MB | 121 µs |
| React with state | 36.1 ms | 234 MB | 2.4 ms |
The JavaScript column is 500 updates run back to back, each applied and sent to the UI thread. Standard deviation of CPU per frame is 0.3 to 0.9 ms.
Linux: Rust compile times
| Command | Wall time | Memory |
|---|---|---|
cargo build --release -p blenderui | 40.9 s | 752 MB |
cargo build --release (workspace, with Node and QuickJS) | 53.1 s | 744 MB |
cargo build (workspace, debug) | 46.3 s | 723 MB |
| Build | Wall time | CPU time (user + sys) | Binary size |
|---|---|---|---|
| Debug, clean | 33.1 s | 142.5 s | 100 MB |
| Debug, incremental | 0.6 s | 1.4 s | 100 MB |
| Release, clean | 37.6 s | 221.0 s | 7.2 MB |
| Release, incremental | 1.6 s | 3.2 s | 7.2 MB |
A release build is 7.2 MB against 100 MB for a debug one, and an incremental rebuild takes under two seconds.
Next steps
Last updated