Performance: re-measured for 0.11.0
Twenty interleaved passes of the chart's benchmark (6 s with startup and the 3-8 s steady state, 60 fps, pinned clock) for Reaktor's four renderers and Electron 44.3.0: software 8.4 MB / 6.6%, direct3d11 57.7 MB / 12.5%, direct3d12 120.5 MB / 5.0%, opengl 69.2 MB / 5.8%, Electron 155.2 MB / 20.7%. Flutter and Kotlin Multiplatform were not rebuilt and keep their figures of 2026-10-24, dated as such in the chart and the table. Idle memory, ten launches each, taken in turn with 0.10.0: showcase 15.8 MB (12.9 on 0.10.0), notepad 11.0 (8.8), simple 7.3 (7.1), so the quoted range is now 7-16 MB. A new Interaction section: master against 0.10.0 on hover, slider drag, typing and the wheel, twelve pairs each. A drawn frame takes 41-43% less time, 20% less on the wheel. PERFORMANCE.md drops figures from builds the code has left behind: the four-platform tables of the single-executable build, the web module sizes from before the CSS engine, the libdbus tray comparison. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
022615bcdf
commit
90614340ec
@@ -9,7 +9,7 @@ A Nuklear-powered GUI library for C.
|
||||
Tired of C relying on heavy toolkits that want hundreds of megabytes and a
|
||||
dozen dependencies just to put a dialog on screen? And of small alternatives
|
||||
always lacking crucial features? No? But I was, so I wrote Reaktor: complete
|
||||
without being big. A 2.1 MB binary, 7–13 MB of RAM, and no GPU required.
|
||||
without being big. A 2.1 MB binary, 7–16 MB of RAM, and no GPU required.
|
||||
|
||||
**[Try the showcase in your browser](https://alpaq92.github.io/Reaktor/)**, the
|
||||
same program built to WebAssembly, or
|
||||
@@ -20,7 +20,7 @@ yourself.
|
||||
> ⚠️ **Reaktor is in active development**; breaking changes may occur.
|
||||
|
||||
<p align="center">
|
||||
<a href="docs/PERFORMANCE.md"><img src="docs/benchmark.svg" alt="Two bar charts of drawing 64 rotating boxes at 60 fps in an 800x600 window. Memory: Reaktor 8.9 MB, the same program on D3D12 120.5 MB and on OpenGL 69.2 MB, Flutter 132.7 MB, Electron 156.3 MB, Kotlin Multiplatform 668.7 MB. Steady-state CPU as a percent of one core: Reaktor 6.3%, D3D12 4.1%, OpenGL 5.5%, Flutter 15.3%, Electron 19.6%, Kotlin Multiplatform 29.4%"></a>
|
||||
<a href="docs/PERFORMANCE.md"><img src="docs/benchmark.svg" alt="Two bar charts of drawing 64 rotating boxes at 60 fps in an 800x600 window. Memory: Reaktor 8.4 MB, the same program on D3D12 120.5 MB and on OpenGL 69.2 MB, Flutter 132.7 MB, Electron 155.2 MB, Kotlin Multiplatform 668.7 MB. Steady-state CPU as a percent of one core: Reaktor 6.6%, D3D12 5.0%, OpenGL 5.8%, Flutter 15.3%, Electron 20.7%, Kotlin Multiplatform 29.4%"></a>
|
||||
</p>
|
||||
|
||||
How, and on what, is in [PERFORMANCE.md](docs/PERFORMANCE.md).
|
||||
|
||||
@@ -35,8 +35,8 @@ the GPU, so those three are the like-for-like comparison. SDL's OpenGL driver
|
||||
is built only when `REAKTOR_RENDERERS` names it, which the `reaktor-opengl`
|
||||
arm's build does. An arm whose renderer would not start is skipped, not measured
|
||||
under another renderer's name. The chart dates its arms: Reaktor's three are
|
||||
re-measured when the runtime changes in a way that could move them, the
|
||||
others last on 2026-10-24.
|
||||
re-measured when the runtime changes in a way that could move them, last on
|
||||
2026-11-09 with Electron; Flutter and Kotlin Multiplatform last on 2026-10-24.
|
||||
|
||||
## What every arm draws
|
||||
|
||||
|
||||
@@ -1399,7 +1399,7 @@ it.
|
||||
- **It needs no GPU.** Without one, Direct3D falls back to Microsoft's WARP
|
||||
emulation: drawing `bench` flat out, SDL's software renderer took 0.75 ms
|
||||
of CPU a frame where Direct3D on WARP took 1.78.
|
||||
- **It uses the least memory**, 8.9 MB in `bench` against 58–121 MB on a GPU
|
||||
- **It uses the least memory**, 8.4 MB in `bench` against 58–121 MB on a GPU
|
||||
renderer, most of that the graphics driver's.
|
||||
- **It starts fastest, and its cost does not depend on other programs** using
|
||||
the GPU.
|
||||
@@ -1436,14 +1436,14 @@ GPU renderer other than `sdl-gpu` keeps the linear output, which blends in
|
||||
linear light, so edges and text differ slightly from an SDR renderer.
|
||||
|
||||
**Prefer `directx` or `direct3d12` to `direct3d11`.** Once running, on
|
||||
2026-10-24, `direct3d11` took 13.4% of a core where `direct3d12` and `opengl`
|
||||
took 5.6%, with vsync on or off: the cost is in SDL's Direct3D 11 renderer or
|
||||
the driver, not in Reaktor's frame. Pick it only where Direct3D 12 will not
|
||||
start; `directx` does that by itself.
|
||||
2026-11-09, `direct3d11` took 12.5% of a core where `direct3d12` took 5.0%
|
||||
and `opengl` 5.8%. On 2026-10-24 turning vsync off did not change that: the
|
||||
cost is in SDL's Direct3D 11 renderer or the driver, not in Reaktor's frame.
|
||||
Pick it only where Direct3D 12 will not start; `directx` does that by itself.
|
||||
|
||||
A GPU renderer smooths the edges of fills unless `.anti_aliasing` says
|
||||
otherwise, and keeps the CPU free during long animations. It costs six to
|
||||
thirteen times the memory and more CPU to start, and it shares the GPU: with
|
||||
otherwise, and keeps the CPU free during long animations. It costs seven to
|
||||
fourteen times the memory and more CPU to start, and it shares the GPU: with
|
||||
another program keeping the GPU busy, frames missed 60 fps and took 16–28% of
|
||||
a core. A renderer that will not start falls back to SDL's choice and logs
|
||||
why. The figures are in [PERFORMANCE.md](PERFORMANCE.md#against-the-others).
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ Nuklear is still underneath when you need it directly. See
|
||||
|
||||
### Why C99 and an immediate-mode core instead of a retained toolkit like GTK or Qt?
|
||||
|
||||
To stay small: a 2.1 MB binary, 7–13 MB of RAM, no GPU, nothing to install
|
||||
To stay small: a 2.1 MB binary, 7–16 MB of RAM, no GPU, nothing to install
|
||||
beside it. A frame is drawn only when something changes, so the app idles at
|
||||
0% of a core. See [The frame loop](DOCUMENTATION.md#the-frame-loop)
|
||||
and [PERFORMANCE.md](PERFORMANCE.md).
|
||||
|
||||
+205
-260
@@ -11,234 +11,167 @@ queue and builds a frame only when the picture would differ. So **CPU is a
|
||||
count of frames, not a load**, and **memory is a floor, not a curve**: once the
|
||||
atlas and icons are baked, nothing grows.
|
||||
|
||||
On Windows today, `showcase.exe` is 3,215,360 bytes, `notepad.exe` 2,274,304,
|
||||
`simple.exe` 2,140,672 and `bench.exe` 2,130,944. The showcase links all nine
|
||||
optional modules, `notepad` three (settings, popup windows, printing) and the
|
||||
other two none; each carries the default look —
|
||||
Aileron, the mark, the sheets and seven icons, 73,123 bytes — compiled in. The
|
||||
four-platform figures below come from an older build that shipped one
|
||||
executable, at 1.00× scale in a 960×680 window; the runtime they measure is
|
||||
the one all four programs share.
|
||||
Unless a figure says otherwise, it was measured on 2026-11-09 on master just
|
||||
before 0.11.0, on the Windows machine in
|
||||
[Where the numbers came from](#where-the-numbers-came-from). There,
|
||||
`showcase.exe` is 3,233,280 bytes, `notepad.exe` 2,290,176, `simple.exe`
|
||||
2,155,520 and `bench.exe` 2,146,304. The showcase links all nine optional
|
||||
modules, `notepad` three (settings, popup windows, printing) and the other two
|
||||
none; each carries the default look compiled in: Aileron, the mark, the sheets
|
||||
and seven icons, 73,123 bytes.
|
||||
|
||||
## Against the others
|
||||
|
||||

|
||||
|
||||
The workload is [ShaftUI/Shaft](https://github.com/ShaftUI/Shaft)'s: 64 boxes
|
||||
rotating at 60 fps in an 800×600 window, every arm on the same machine: a
|
||||
Lenovo laptop with a 6-core Ryzen 5 4600H, a GeForce RTX 2060 and a 1920×1080
|
||||
120 Hz display, on Windows 11 Pro. Each arm is its own app, built with its
|
||||
framework's toolchain; one script launches it and samples its whole process
|
||||
tree from outside. [`benchmarks/`](../benchmarks/BENCHMARKS.md) has the
|
||||
projects and the runner. Reaktor appears once per `--renderer`; its arms are
|
||||
0.10.0, measured on 2026-11-07, the others from the pass of 2026-10-24. Shaft
|
||||
is not plotted: it does not link on Windows.
|
||||
rotating at 60 fps in an 800×600 window. Each arm is its own app, built with
|
||||
its framework's toolchain; one script launches it and samples its whole
|
||||
process tree from outside. [`benchmarks/`](../benchmarks/BENCHMARKS.md) has
|
||||
the projects and the runner. Reaktor appears once per `--renderer`. Shaft is
|
||||
not plotted: it does not link on Windows.
|
||||
|
||||
| Arm | Memory | CPU, with startup | CPU, steady state |
|
||||
| --- | --- | --- | --- |
|
||||
| **Reaktor**, `software` | 8.9 MB | 7.9% | 6.3% |
|
||||
| **Reaktor**, `direct3d11` | 57.7 MB | 13.5% | 9.1% |
|
||||
| **Reaktor**, `direct3d12` | 120.5 MB | 11.1% | 4.1% |
|
||||
| **Reaktor**, `opengl` | 69.2 MB | 11.2% | 5.5% |
|
||||
| Flutter | 132.7 MB | 38.8% | 15.3% |
|
||||
| Electron | 156.3 MB | 36.5% | 19.6% |
|
||||
| Kotlin Multiplatform | 668.7 MB | 51.5% | 29.4% |
|
||||
| Arm | Memory | CPU, with startup | CPU, steady state | Measured |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| **Reaktor**, `software` | 8.4 MB | 8.2% | 6.6% | 2026-11-09 |
|
||||
| **Reaktor**, `direct3d11` | 57.7 MB | 13.1% | 12.5% | 2026-11-09 |
|
||||
| **Reaktor**, `direct3d12` | 120.5 MB | 11.7% | 5.0% | 2026-11-09 |
|
||||
| **Reaktor**, `opengl` | 69.2 MB | 10.9% | 5.8% | 2026-11-09 |
|
||||
| Electron 44.3.0 | 155.2 MB | 36.1% | 20.7% | 2026-11-09 |
|
||||
| Flutter 3.47.8 | 132.7 MB | 38.8% | 15.3% | 2026-10-24 |
|
||||
| Kotlin Multiplatform | 668.7 MB | 51.5% | 29.4% | 2026-10-24 |
|
||||
|
||||
- **About a fifteenth of Flutter's memory and less than half its CPU**, with
|
||||
startup or without, and about a seventy-fifth of Kotlin Multiplatform's
|
||||
- **About a sixteenth of Flutter's memory and less than half its CPU**, with
|
||||
startup or without, and about an eightieth of Kotlin Multiplatform's
|
||||
memory.
|
||||
- **Every Reaktor renderer takes less CPU than every other framework.** On a
|
||||
GPU renderer its memory is mostly the graphics driver's: 58–121 MB, below
|
||||
Flutter's 133.
|
||||
- **Startup counts.** A run that draws for only 0.2 s takes 0.16 s of CPU on
|
||||
`software` and 0.41–0.47 s on a GPU renderer (medians of five runs, on
|
||||
2026-10-24). Once running, `direct3d12` takes two points less than
|
||||
`software`, `opengl` under one.
|
||||
- **About 2.2 MB of Reaktor's 8.9 is the antivirus.** Bitdefender puts two
|
||||
components into every process on this machine, so every arm carries them.
|
||||
Walked with VirtualQueryEx and a heap ledger on `bench` on 2026-11-04, they
|
||||
come to two private heaps of 776 KB each (one the hook module's, one holding
|
||||
a 642 KB table of the other's), 74 code pages patched with hooks (303 KB) and 56
|
||||
more copied unchanged (229 KB), 53 KB of trampolines and about 180 KB of
|
||||
pages beside. Subtract that to compare with a machine without it. The rest
|
||||
of the 9.3 MB walked is 1.9 MB of window framebuffer, 1.75 MB of system DLL
|
||||
data made private, about 0.9 MB of page tables and other commit a walk
|
||||
cannot see, and 1.1 MB allocated by Reaktor, SDL, Nuklear and FreeType —
|
||||
the glyph atlas, 537 KB, and its table, 143 KB, the largest.
|
||||
- **Once running, `direct3d12` and `opengl` take 0.8–1.6 points less than
|
||||
`software`; with startup, 2.7–4.9 more.** `direct3d11` takes the most of
|
||||
the four either way.
|
||||
- **About 2.2 MB of every arm is the antivirus.** Bitdefender puts two
|
||||
components into every process on this machine. Walked with VirtualQueryEx
|
||||
and a heap ledger on `bench` on 2026-11-04, they come to two private heaps
|
||||
of 776 KB each, 74 code pages patched with hooks (303 KB), 56 more copied
|
||||
unchanged (229 KB), 53 KB of trampolines and about 180 KB of pages beside.
|
||||
Subtract that to compare with a machine without it. Of the rest, 1.9 MB is
|
||||
the window's framebuffer, 1.75 MB system DLL data made private, and 1.1 MB
|
||||
Reaktor's, SDL's, Nuklear's and FreeType's own allocations, the glyph atlas
|
||||
(537 KB) the largest.
|
||||
- **A GPU renderer's CPU depends on what else uses the GPU.** With another
|
||||
program keeping it busy, `direct3d11` and `opengl` missed 60 fps and took
|
||||
16–28% of a core. These runs had the GeForce RTX 2060 idle.
|
||||
|
||||
`software` used to read 67.3% here, because every rectangle reached SDL as
|
||||
two blended triangles. Drawing solid rectangles as plain fills cut a frame
|
||||
from 11.48 ms to 2.12 ms, with the same pixels.
|
||||
16–28% of a core (2026-10-24). These runs had the GeForce RTX 2060 idle.
|
||||
|
||||
### How it was measured
|
||||
|
||||
```bash
|
||||
./benchmarks/run.ps1 -Seconds 6 -Fps 60 -Runs 10 -PinClock
|
||||
./benchmarks/run.ps1 -Fps 60 -Runs 10 -Steady -PinClock
|
||||
```powershell
|
||||
./benchmarks/run.ps1 -Targets <arm> -Seconds 6 -Fps 60 -Runs 1 -PinClock
|
||||
./benchmarks/run.ps1 -Targets <arm> -Fps 60 -Runs 1 -Steady -PinClock
|
||||
```
|
||||
|
||||
CPU is a percent of one core: with startup over the whole 6-second run, steady
|
||||
from 3 s to 8 s of a 9-second run. Every arm is held to 60 fps and sleeps out
|
||||
the rest of each frame; Kotlin Multiplatform held 59. Each figure is the
|
||||
median of ten runs, the steady-state ones taken in turn across arms, and
|
||||
Reaktor's the mean of two such medians; passes differ by up to three points of
|
||||
CPU. Memory is peak private bytes, and CPU the
|
||||
sum, across each app's process tree. `-PinClock` runs on a copy of the power
|
||||
plan that holds the processor at full speed, and restores the plan after.
|
||||
The other frameworks were measured in one pass on 2026-10-24 and Reaktor's rows
|
||||
on 2026-11-07, all with the GPU idle: Flutter
|
||||
3.47.8, Electron 44.3.0, and Kotlin 2.4.20 with Compose 1.12.0 on JDK 21. The
|
||||
Flutter arm took 91 MB and 19% of a core with startup on the Flutter release
|
||||
used before; 3.47.8 takes more of both. The sampler counts what an app's own timers miss: `bench` times
|
||||
0.07 ms of work per `direct3d11` frame on 2026-10-22, where the sampler charges
|
||||
9% once running.
|
||||
`vulkan` falls back to `direct3d11` in this SDL build. Run the script from
|
||||
PowerShell: started through Git Bash, the same `bench` reads 5.9–6.2 MB of
|
||||
private bytes against 8.2–8.7 MB, three runs each.
|
||||
Twenty passes, each running every arm once in each mode, the order of the arms
|
||||
rotated and reversed from pass to pass so none always runs first. Memory is
|
||||
peak private bytes and CPU the sum across each app's process tree, as a
|
||||
percent of one core: with startup over the whole 6-second run, steady from
|
||||
3 s to 8 s of a 9-second run. Every arm held 60 fps. Each figure is the median
|
||||
of the twenty runs. Between runs of one arm, memory spread by up to 2.2 MB
|
||||
(Electron 5.5 MB) and steady CPU by several points: the middle half of
|
||||
`software`'s runs read 6.0–7.2%, `direct3d11`'s 10.4–14.4%, `direct3d12`'s
|
||||
3.5–6.2%, `opengl`'s 4.1–6.6% and Electron's 19.0–22.1%. `-PinClock` runs
|
||||
on a copy of the power plan that holds the processor at full speed, and
|
||||
restores the plan after.
|
||||
|
||||
## Size
|
||||
Reaktor's `software`, `direct3d11` and `direct3d12` arms are the default
|
||||
Release build; `opengl` is a build with
|
||||
`-DREAKTOR_RENDERERS=direct3d11,direct3d12,opengl`. `vulkan` falls back to
|
||||
`direct3d11` in this SDL build. Flutter and Kotlin Multiplatform were not
|
||||
rebuilt for this pass and keep their figures of 2026-10-24, from the same
|
||||
machine and script with ten runs each: Flutter 3.47.8, and Kotlin 2.4.20 with
|
||||
Compose 1.12.0 on JDK 21, which held 59 fps.
|
||||
|
||||
| Artifact | Bytes |
|
||||
| --- | --- |
|
||||
| Windows | 2,473,984 |
|
||||
| Linux, stripped | 3,967,504 |
|
||||
| macOS, stripped | 3,242,248 |
|
||||
| GhostBSD, stripped | 2,793,248 |
|
||||
| Web bundle (Windows emsdk) | 1,389,356 |
|
||||
| Web bundle (Linux emsdk) | 1,389,186 |
|
||||
| Web bundle (macOS emsdk) | 1,389,145 |
|
||||
| Web bundle (GhostBSD emsdk) | 1,389,525 |
|
||||
Run the script from PowerShell: started through Git Bash, the same `bench`
|
||||
reads about 3 MB less private memory (2026-11-07).
|
||||
|
||||
The older single-executable build, on each platform. Everything links
|
||||
statically — SDL, libcss, plutosvg, plutovg, Nuklear, Onlay, and mojibake and
|
||||
kb_text_shape with Text — so only the C runtime loads from outside. The web
|
||||
bundles agree within 211 bytes on Windows, Linux and macOS (emscripten 6.0.9),
|
||||
and 380 with GhostBSD's emscripten 6.0.3; the Linux one is 1,221,689 bytes of
|
||||
`.wasm`, 86,001 of assets, 80,045 of `.js` and 1,451 of `.html`. Today's
|
||||
build also links FreeType, which bakes the glyph atlas, and reads the
|
||||
stylesheets with its own engine in place of libcss. The Windows
|
||||
binary's icon is a 125 KB resource of nine sizes, built from the SVG by
|
||||
`tools/mkicon.c`.
|
||||
## Interaction
|
||||
|
||||
Nuklear is compiled with `-Os` (`/O1` with MSVC): the stripped shared
|
||||
libreaktor on Linux x86-64 goes from 1,880,624 bytes at `-O3` to 1,737,264,
|
||||
and Nuklear's own code from 306,649 to 168,042. `bench --no-vsync --video
|
||||
dummy` on the Linux desktop below, median of seven runs, CPU time a frame:
|
||||
Driving the showcase with input, master draws the same frames as 0.10.0
|
||||
in 41–43% less time each, 20% less on the wheel, most of it saved in
|
||||
rendering; the process spends 8–24% less CPU. A harness build of the
|
||||
showcase feeds it synthetic SDL events every 8 ms after two seconds of
|
||||
warm-up, on `software` at 1100×680, vsync off, light theme, with the clock
|
||||
pinned as above:
|
||||
|
||||
| Build | `-O3` | `-Os`, three rounds |
|
||||
| --- | --- | --- |
|
||||
| shared | 563 µs | 574, 563, 528 µs |
|
||||
| static | 527 µs | 548, 523, 511 µs |
|
||||
- **Hover**: the pointer sweeps four rows of the Buttons page, 3 px a step.
|
||||
- **Slider drag**: on Inputs, a sweep over the fields, the Float slider
|
||||
dragged back and forth, then down and up the sidebar.
|
||||
- **Typing**: a word typed into a field and erased, eight times, a key every
|
||||
48 ms.
|
||||
- **Wheel**: 60 notches down and 60 up, twice, one every 32 ms.
|
||||
|
||||
The rounds spread wider than the change. Every showcase tab in both themes,
|
||||
`notepad` and `simple` draw and dump byte for byte as they did at `-O3`.
|
||||
Twelve pairs per workload, each pair one run of 0.10.0 and one of master,
|
||||
which runs first alternating. Medians of the twelve:
|
||||
|
||||
SDL's GPU API is left out unless `REAKTOR_SHADERS` is on. Built in, it costs
|
||||
the software renderer too: SDL then loads the Vulkan loader, every installed
|
||||
Vulkan driver and LLVM, and the Diagnostics page's "window and renderer" step
|
||||
goes from +0.2 MB private to +34.4 MB. On the Linux desktop below, the shared
|
||||
build, `bench --no-vsync`, five runs each, both on the software backend:
|
||||
| Workload | Frames drawn | A drawn frame, 0.10.0 | Master | Process CPU, 0.10.0 | Master |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| Hover | 40 | 3.69 ms | **2.06 ms** | 9.2% | **8.0%** |
|
||||
| Slider drag | 344 | 3.37 ms | **1.92 ms** | 18.0% | **13.9%** |
|
||||
| Typing | 128 | 3.56 ms | **2.13 ms** | 13.6% | **12.1%** |
|
||||
| Wheel | 208 | 3.48 ms | **2.81 ms** | 15.8% | **15.6%** |
|
||||
|
||||
| `REAKTOR_SHADERS` | A frame on the display | Private |
|
||||
| --- | --- | --- |
|
||||
| `OFF` | 2.08–2.35 ms | 5.0 MB |
|
||||
| `ON` | 13.59–16.31 ms | 63.1 MB |
|
||||
|
||||
The stripped `libreaktor-sdl3.so` is 2,659,344 bytes without it and 2,950,704
|
||||
with it. With `--video dummy`, where nothing reaches a display, the frame costs
|
||||
563–622 µs of CPU without it and 588–740 µs with it.
|
||||
|
||||
### Modules
|
||||
|
||||
`showcase`, each module off in turn; native on the Windows machine below, web
|
||||
on Windows emsdk 6.0.9. The web rows are from the build before the CSS engine
|
||||
replaced libcss.
|
||||
|
||||
| `showcase` | Default | Module off | Saved |
|
||||
| --- | --- | --- | --- |
|
||||
| `.exe`, accessibility bridges | 3,215,360 | 3,200,000 | 15,360 (0.48%) |
|
||||
| `.exe`, Locale | 3,215,360 | 3,200,000 | 15,360 (0.48%) |
|
||||
| `.exe`, Text | 3,215,360 | 2,591,232 | 624,128 (19.4%) |
|
||||
| `.wasm` + `.js`, accessibility bridges | 2,308,781 | 2,305,843 | 2,938 (0.13%) |
|
||||
| `.wasm` + `.js`, Locale | 2,308,781 | 2,295,269 | 13,512 (0.59%) |
|
||||
| `.wasm` + `.js`, Text | 2,308,781 | 1,824,708 | 484,073 (21.0%) |
|
||||
| `.data`, Locale | 1,910,136 | 143,867 | 1,766,269 (92.5%) |
|
||||
| `.data`, Text | 1,910,136 | 151,448 | 1,758,688 (92.1%) |
|
||||
|
||||
**The bridges are small**; turned off, they drop libraries more than bytes.
|
||||
Pixels and `--a11y-dump` stay byte-identical, and only a screen reader
|
||||
notices: UI Automation finds 99 elements on the Buttons page, none without
|
||||
them.
|
||||
|
||||
**Text is mostly tables and a font.** kb_text_shape is 95 KB of code and
|
||||
391 KB of tables, and mojibake 19 KB of code and 180 KB of line-breaking and
|
||||
bidirectional data; the `.data` it saves is M PLUS 1p, 1,758,688 bytes.
|
||||
Locale is 15 KB of the executable and 7,581 bytes of catalogs; compiled in
|
||||
(`-DREAKTOR_LOCALE_EMBED=ON`), `showcase.exe` is 3,222,528 bytes.
|
||||
|
||||
**Text costs memory once it draws.** Medians of private bytes over ten
|
||||
launches: Diagnostics is 12.6 MB with every module, 12.6 MB without Locale and
|
||||
12.1 MB without Text — kb_text_shape's tables are not `const`, so they are
|
||||
committed untouched. Translations, in Japanese, is 12.3 MB against 11.8 MB
|
||||
without Text: M PLUS 1p held open, what kb_text_shape parses from it, the
|
||||
glyph texture and the caches.
|
||||
A drawn frame is build, render and present as the runtime times them; CPU is
|
||||
the whole process over the script. Every pair drew the frame faster on
|
||||
master. Rendering is 52–56% shorter on hover, slider drag and typing, 22%
|
||||
on the wheel, whose frames redraw most of the window; build is 23–37%
|
||||
shorter, present unchanged. Process CPU was lower on master in every slider
|
||||
pair, ten of twelve hover and typing pairs and seven of twelve wheel pairs:
|
||||
on master the drawn frames are 10–46% of the process's CPU time.
|
||||
|
||||
## Memory
|
||||
|
||||
Idle on the Login page.
|
||||
Idle, ten seconds after launch with the pointer outside the window; medians of
|
||||
ten launches, 0.10.0's taken in turn with master's:
|
||||
|
||||
| | Windows | Linux | macOS | GhostBSD |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| Committed / private / footprint | **12.3 MB** | **4.3 MB** | **~30 MB** | **5.1 MB** |
|
||||
| Resident / working set | **29.3 MB** | **11.4 MB** | **33–36 MB** | **11.9 MB** |
|
||||
| | Private bytes | Working set | 0.10.0, private bytes |
|
||||
| --- | --- | --- | --- |
|
||||
| `showcase` | **15.8 MB** | 34.4 MB | 12.9 MB |
|
||||
| `notepad` | **11.0 MB** | 27.0 MB | 8.8 MB |
|
||||
| `simple` | **7.3 MB** | 20.2 MB | 7.1 MB |
|
||||
|
||||
Committed is what the process asked the system to back; resident is what is
|
||||
in RAM, shared library pages included. Windows is today's `showcase`, with
|
||||
every module, medians of ten launches; the others are the older
|
||||
single-executable build. Idle on Windows, `notepad` is 8.9 MB and `simple`,
|
||||
which links no module, 7.4 MB. The
|
||||
showcase's figure includes a second copy of the glyph atlas: its splash is a
|
||||
window of its own, and the first such window keeps its atlas for the next.
|
||||
Private bytes are what the process asked the system to back; the working set
|
||||
is what is in RAM, shared pages of system DLLs included. Launches spread by up
|
||||
to 0.9 MB of private bytes, `notepad` on 0.10.0 by 2.1 MB. The showcase opens
|
||||
on its Login page; its figure includes a second copy of the glyph atlas,
|
||||
because its splash is a window of its own and the first such window keeps its
|
||||
atlas for the next.
|
||||
|
||||
- **Windows is mostly the system's.** Split before the CSS engine replaced
|
||||
libcss, 1.7 MB of the showcase's 12.6 MB was Reaktor's own allocations, the largest the glyph atlas (548 KB) and its
|
||||
table (281 KB) for eight sizes in two weights. Most of the rest is the heaps
|
||||
of the Windows components it loads: UI Automation, the shell, the input
|
||||
method.
|
||||
- **Windows is mostly the system's.** Reaktor, SDL, Nuklear and FreeType
|
||||
allocate 1.1 MB in `bench`; most of the showcase's private bytes are the
|
||||
heaps of the Windows components it loads: UI Automation, the shell, the
|
||||
input method.
|
||||
- **Bitdefender is in every Windows figure here**, about 2.2 MB of each;
|
||||
[the chart's note](#against-the-others) has the split, measured on `bench`.
|
||||
In the showcase its two heaps are the 776 KB pair among the heap segments.
|
||||
[the chart's notes](#against-the-others) have the split.
|
||||
|
||||
- **Linux started at 123.6 MB, almost none of it Reaktor's.** SDL's X11 driver
|
||||
set up OpenGL whatever the renderer, and with no GPU that loads Mesa's
|
||||
software OpenGL and LLVM: 53 MB of libLLVM, 10 of Mesa, 30 of heap.
|
||||
Compiling SDL's GL drivers out brought it to 4.3 MB; `-DREAKTOR_RENDERERS=opengl`
|
||||
puts them back.
|
||||
- **GhostBSD lands beside Linux.** Of its 5.1 MB, 2.5 MB is SDL's framebuffer
|
||||
(960×680×4), shared with the X server. Its figures come from `ps` and
|
||||
`procstat -v`, macOS's from `vmmap`; `reaktor_process_memory` reads only
|
||||
Windows and Linux.
|
||||
- **macOS is ~7× Linux, outside this code.** `vmmap` splits the ~30 MB into
|
||||
~15 MB of Cocoa floor and ~12 MB of heap, mostly three ~2.5 MB bitmaps: SDL's
|
||||
render target, its staging copy and the atlas. Without a renderer rewrite
|
||||
the floor is 26–28 MB, and Retina pushes committed toward 50 MB.
|
||||
|
||||
Windows varies by about half a megabyte between identical runs, so compare ten
|
||||
launches.
|
||||
`tools/vmwalk.c` (`cmake --build build --target vmwalk`) splits another
|
||||
process's private bytes into named buckets.
|
||||
|
||||
### On Linux
|
||||
|
||||
**Linux once started at 123.6 MB, almost none of it Reaktor's.** SDL's X11
|
||||
driver set up OpenGL whatever the renderer, and with no GPU that loads Mesa's
|
||||
software OpenGL and LLVM: 53 MB of libLLVM, 10 of Mesa, 30 of heap.
|
||||
Compiling SDL's GL drivers out brought that build to 4.3 MB;
|
||||
`-DREAKTOR_RENDERERS=opengl` puts them back.
|
||||
|
||||
**Three apps share 21% at most.** `tools/ci/pss.sh` runs `showcase`,
|
||||
`notepad` and `simple` together, idle; medians of ten launches. Each carries
|
||||
its own copy of libreaktor and SDL, which a shared library would map once.
|
||||
`notepad` and `simple` together, idle, on a GitHub `ubuntu-24.04` runner;
|
||||
medians of ten launches. Each carries its own copy of libreaktor and SDL,
|
||||
which a shared library would map once.
|
||||
|
||||
| | PSS | Clean pages of its binary |
|
||||
| --- | --- | --- |
|
||||
@@ -248,20 +181,17 @@ its own copy of libreaktor and SDL, which a shared library would map once.
|
||||
|
||||
Of the 20,433 KB together, one copy instead of three would save 4,366 KB, or
|
||||
21.3%. That counts each app's own code as library code, so it is an upper
|
||||
bound.
|
||||
bound. Counted page by page, it is 20.2%: `tools/ci/pss-pages.sh` links the
|
||||
three with maps and sorts each resident page of a binary by the object it came
|
||||
from, and sharing would save 4,120 KB of the 20,423. That still takes the
|
||||
largest app's library pages as all three's, and leaves out what the dynamic
|
||||
linker costs each app.
|
||||
|
||||
Counted page by page, it is 20.2%. `tools/ci/pss-pages.sh` links the three
|
||||
with maps and sorts each resident page of a binary by the object it came from:
|
||||
2,386 KB of `showcase`'s is libreaktor and SDL, 2,090 KB of `notepad`'s and
|
||||
2,018 KB of `simple`'s. Sharing would save 4,120 KB of the 20,423. That is still
|
||||
an upper bound: it takes the largest app's library pages as all three's, and
|
||||
leaves out what the dynamic linker costs each app.
|
||||
|
||||
On a Linux desktop it falls under 20%: Linux Mint 22.3, Cinnamon on X11,
|
||||
llvmpipe (no GPU passthrough), a KVM guest on an AMD Ryzen 5 4600H with 4
|
||||
cores. `showcase` grows to 14,224 KB there, while the library pages barely
|
||||
move. Counting every clean page of a binary, sharing saves 4,602 KB of
|
||||
24,157 KB, or 19.0%; counted page by page, 4,176 KB of 24,200 KB, or 17.3%.
|
||||
On a Linux Mint 22.3 desktop (Cinnamon on X11, llvmpipe, a KVM guest with 4
|
||||
cores of the Ryzen 5 4600H) it falls under 20%: `showcase` grows to
|
||||
14,224 KB, while the library pages barely move. Counting every clean page of a
|
||||
binary, sharing saves 4,602 KB of 24,157 KB, or 19.0%; page by page,
|
||||
4,176 KB of 24,200 KB, or 17.3%.
|
||||
|
||||
**Shared, it saves 19%.** The same three on that desktop, five launches each,
|
||||
static and then linked to `libreaktor.so` (`-DREAKTOR_SHARED=ON`):
|
||||
@@ -278,80 +208,95 @@ the split instead: its resident set is 0.6–0.9 MB larger shared (`simple`
|
||||
8.2 MB against 7.3, `showcase` 18.7 against 18.0), the library's relocations
|
||||
and a second SDL image that no other app is there to share.
|
||||
|
||||
### The tray on Linux
|
||||
|
||||
The same Linux Mint desktop, `showcase` idle on the Login page, five to eight
|
||||
launches each, before and after the tray moved from SDL's to libdbus:
|
||||
|
||||
| | SDL's tray | Over libdbus | No tray |
|
||||
| --- | --- | --- | --- |
|
||||
| Shared libraries mapped | 110 | 57 | 57 |
|
||||
| GTK, GDK, ATK, dbusmenu-gtk3, AppIndicator | mapped | none | none |
|
||||
| `reaktor_tray_open` | 79–133 ms | 7–23 ms | |
|
||||
| First frame, Diagnostics "startup" | 762–963 ms | 794–950 ms | 740–861 ms |
|
||||
| Private dirty | 68.9–72.0 MB | 68.1–76.8 MB | 65.0–73.0 MB |
|
||||
|
||||
`simple` maps 57 too. The first frame and private memory vary more between
|
||||
launches than the tray moves them; the open itself is the measured saving.
|
||||
|
||||
## CPU
|
||||
|
||||
**At rest: 0% of a core** on Windows, Linux and GhostBSD, on every page; macOS
|
||||
settles around **0.3–0.5%**, as CoreAnimation wakes the loop now and then for
|
||||
an iteration that draws nothing.
|
||||
settles around 0.3–0.5%, as CoreAnimation wakes the loop now and then for an
|
||||
iteration that draws nothing.
|
||||
|
||||
Redrawing continuously at 960×680, p10–p90 of 31 samples:
|
||||
**Without a GPU, `software` beats Direct3D.** `direct3d11` then falls back to
|
||||
WARP, which rasterizes on threads of its own: drawing `bench` flat out, the
|
||||
process spent 1.78 ms of CPU a frame on WARP against 0.75 ms on `software`
|
||||
(medians of five runs, 2026-10-24), which made software the default.
|
||||
|
||||
| Page | Windows | Linux | macOS | GhostBSD |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| Login | 6.8–6.9 ms/frame | 6.2–6.7 ms/frame | 17.5–20.5 ms/frame | 6.2–8.3 ms/frame |
|
||||
| Buttons (the busiest) | 11.5–12.2 ms/frame | 11.7–13.0 ms/frame | 29.6–30.2 ms/frame | 13.4–15.3 ms/frame |
|
||||
**The accessibility tree adds 3.3 µs to a drawn frame** with 82 nodes
|
||||
(2026-10-23).
|
||||
|
||||
The same rasterizer runs on all four. macOS also uploads the bitmap to a
|
||||
Metal texture to present it. On GhostBSD the timers put 6.7 ms of Login's
|
||||
7.1 ms and 11.1 ms of Buttons' 14.8 in the present, but those timers counted
|
||||
SDL's rasterizing as present too, so that is the raster and the blit into
|
||||
VMware's framebuffer together.
|
||||
## Size
|
||||
|
||||
The Windows build of 2026-10-24, at its default 1100×680, redrawing
|
||||
continuously with vsync off, build, render and present, p10–p90 of 31 frames after 9 to warm up,
|
||||
over three launches: Login takes **1.3–1.8 ms** a frame and Buttons
|
||||
**2.7–3.4 ms**; `direct3d11` takes 0.4–0.8 ms and 0.8–1.3 ms. Rasterizing is
|
||||
most of a software frame. SDL does it when its queue is flushed, which then
|
||||
happened inside the present; flushing first, on 0.9.0 over three launches, it
|
||||
takes 1.07–1.23 ms of Login's 1.34–1.55 ms and 1.60–1.73 ms of Buttons'
|
||||
2.45–2.68 ms, and the copy to the window 14–22 µs and 18–65 µs.
|
||||
Without a GPU, `direct3d11` falls back to WARP, which rasterizes on threads of
|
||||
its own: drawing `bench` flat out, the process spends **1.78 ms** of CPU a
|
||||
frame on WARP against 0.75 ms on `software` (medians of five runs), which
|
||||
made software the default.
|
||||
Everything links statically (SDL, plutosvg, plutovg, Nuklear, Onlay,
|
||||
FreeType, and mojibake and kb_text_shape with Text), so only the C runtime
|
||||
loads from outside. The Windows binary's icon is a 125 KB resource of nine
|
||||
sizes, built from the SVG by `tools/mkicon.c`.
|
||||
|
||||
The accessibility tree adds **3.3 µs** to a drawn frame (82 nodes). Once
|
||||
running, `direct3d12` and `opengl` take less CPU, though more with startup; see
|
||||
**Against the others**.
|
||||
Nuklear is compiled with `-Os` (`/O1` with MSVC): the stripped shared
|
||||
libreaktor on Linux x86-64 goes from 1,880,624 bytes at `-O3` to 1,737,264,
|
||||
and Nuklear's own code from 306,649 to 168,042. `bench --no-vsync --video
|
||||
dummy` on the Linux Mint desktop above, median of seven runs, CPU time a frame:
|
||||
|
||||
| Build | `-O3` | `-Os`, three rounds |
|
||||
| --- | --- | --- |
|
||||
| shared | 563 µs | 574, 563, 528 µs |
|
||||
| static | 527 µs | 548, 523, 511 µs |
|
||||
|
||||
The rounds spread wider than the change. Every showcase tab in both themes,
|
||||
`notepad` and `simple` draw and dump byte for byte as they did at `-O3`.
|
||||
|
||||
SDL's GPU API is left out unless `REAKTOR_SHADERS` is on. Built in, it costs
|
||||
the software renderer too: SDL then loads the Vulkan loader, every installed
|
||||
Vulkan driver and LLVM, and the Diagnostics page's "window and renderer" step
|
||||
goes from +0.2 MB private to +34.4 MB. On the same desktop, the shared build,
|
||||
`bench --no-vsync`, five runs each, both on the software backend:
|
||||
|
||||
| `REAKTOR_SHADERS` | A frame on the display | Private |
|
||||
| --- | --- | --- |
|
||||
| `OFF` | 2.08–2.35 ms | 5.0 MB |
|
||||
| `ON` | 13.59–16.31 ms | 63.1 MB |
|
||||
|
||||
The stripped `libreaktor-sdl3.so` is 2,659,344 bytes without it and 2,950,704
|
||||
with it. With `--video dummy`, where nothing reaches a display, the frame costs
|
||||
563–622 µs of CPU without it and 588–740 µs with it.
|
||||
|
||||
### Modules
|
||||
|
||||
`showcase.exe` on 0.9.0 (2026-11-04), each module off in turn:
|
||||
|
||||
| | Default | Module off | Saved |
|
||||
| --- | --- | --- | --- |
|
||||
| Accessibility bridges | 3,215,360 | 3,200,000 | 15,360 (0.48%) |
|
||||
| Locale | 3,215,360 | 3,200,000 | 15,360 (0.48%) |
|
||||
| Text | 3,215,360 | 2,591,232 | 624,128 (19.4%) |
|
||||
|
||||
**The bridges are small**; turned off, they drop libraries more than bytes.
|
||||
Pixels and `--a11y-dump` stay byte-identical, and only a screen reader
|
||||
notices: UI Automation finds 99 elements on the Buttons page, none without
|
||||
them.
|
||||
|
||||
**Text is mostly tables and a font.** kb_text_shape is 95 KB of code and
|
||||
391 KB of tables, and mojibake 19 KB of code and 180 KB of line-breaking and
|
||||
bidirectional data; on the web, the `.data` it adds is M PLUS 1p, 1,758,688
|
||||
bytes. Locale is 15 KB of the executable and 7,581 bytes of catalogs;
|
||||
compiled in (`-DREAKTOR_LOCALE_EMBED=ON`), `showcase.exe` was 3,222,528 bytes.
|
||||
|
||||
## What it needs to run
|
||||
|
||||
**No GPU**, and **7–13 MB of RAM** on Windows. The default look is compiled
|
||||
in, so a program needs no files beside it until it uses other Ionicons, Simple.css, the
|
||||
catalogs or the Japanese font, found under a `.reaktor-root` marker beside it
|
||||
or up to two folders above. The web build packs those into its `.data` and needs an HTTP server,
|
||||
since a `file://` page cannot fetch the `.wasm`.
|
||||
**No GPU**, and **7–16 MB of RAM** on Windows. The default look is compiled
|
||||
in, so a program needs no files beside it until it uses other Ionicons,
|
||||
Simple.css, the catalogs or the Japanese font, found under a `.reaktor-root`
|
||||
marker beside it or up to two folders above. The web build packs those into
|
||||
its `.data` and needs an HTTP server, since a `file://` page cannot fetch the
|
||||
`.wasm`.
|
||||
|
||||
## Where the numbers came from
|
||||
|
||||
- **Windows** — 11 Pro (26200), x64, MSVC Release, Ryzen 5 4600H (6 cores,
|
||||
12 threads), GeForce RTX 2060, 1920×1080 at 120 Hz, no scaling. Sizes and
|
||||
**Modules** with MSVC 14.44 (Visual Studio 2022 Build Tools) and emscripten
|
||||
6.0.9; **Against the others** in the 800×600 window every arm asks for, with
|
||||
Electron 44.3.0 on Node 22, Flutter 3.38.0, and Compose Multiplatform 1.12.0
|
||||
on Kotlin 2.4.20 and Temurin JDK 21.
|
||||
- **Linux** — Debian 13, x86_64, GCC Release, X11, no GPU.
|
||||
- **macOS** — 11.7 Big Sur, Intel iMac, Apple Clang 12, 1024×768 non-Retina,
|
||||
built with `-DCMAKE_OSX_SYSROOT=…/MacOSX11.3.sdk`.
|
||||
- **GhostBSD** — 26.1-R15.0p2, x86_64, Clang 19.1.7, X11, VMware, no 3D.
|
||||
- **Sharing** — GitHub `ubuntu-24.04` runner, x86_64, Debian 12 container,
|
||||
GCC Release, Xvfb, no GPU.
|
||||
- **Windows**: a Lenovo laptop with an AMD Ryzen 5 4600H (6 cores, 12
|
||||
threads), a GeForce RTX 2060 and a 1920×1080 120 Hz display at 100%
|
||||
scaling, on Windows 11 Pro (build 26300), x64. MSVC 14.44 (Visual Studio
|
||||
2022 Build Tools) Release builds; **Against the others** in the 800×600
|
||||
window every arm asks for.
|
||||
- **Linux**: the Linux Mint 22.3 desktop above, and for **Three apps share**
|
||||
a GitHub `ubuntu-24.04` runner, x86_64, in a Debian 12 container, GCC
|
||||
Release, Xvfb, no GPU.
|
||||
|
||||
The **Diagnostics** page shows the renderer, the frame breakdown and the
|
||||
resident set live; reproduce any of this there.
|
||||
|
||||
+13
-13
@@ -3,8 +3,8 @@
|
||||
<rect x="30" y="30" width="715" height="500" rx="14" fill="#353535"/>
|
||||
<text x="70" y="90" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="31" font-weight="600" fill="#ffffff">Memory</text>
|
||||
<text x="70" y="116" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#8e8e8e">private bytes, peak, whole process tree</text>
|
||||
<rect x="99.5" y="448.832" width="46" height="3.16764" fill="#56c7ff"/>
|
||||
<text x="122.5" y="418.832" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">8.9 MB</text>
|
||||
<rect x="99.5" y="449.01" width="46" height="2.98968" fill="#56c7ff"/>
|
||||
<text x="122.5" y="419.01" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">8.4 MB</text>
|
||||
<text x="122.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="600" fill="#ffffff">Software</text>
|
||||
<path d="M205.5 452 v-36.8877 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v36.8877 z" fill="#56c7ff"/>
|
||||
<text x="228.5" y="379.112" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">120.5 MB</text>
|
||||
@@ -15,8 +15,8 @@
|
||||
<path d="M417.5 452 v-41.2298 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v41.2298 z" fill="#6e7a82"/>
|
||||
<text x="440.5" y="374.77" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">132.7 MB</text>
|
||||
<text x="440.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="400" fill="#b9b9b9">Flutter</text>
|
||||
<path d="M523.5 452 v-49.6294 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v49.6294 z" fill="#6e7a82"/>
|
||||
<text x="546.5" y="366.371" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">156.3 MB</text>
|
||||
<path d="M523.5 452 v-49.2379 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v49.2379 z" fill="#6e7a82"/>
|
||||
<text x="546.5" y="366.762" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">155.2 MB</text>
|
||||
<text x="546.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="400" fill="#b9b9b9">Electron</text>
|
||||
<path d="M629.5 452 v-232 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v232 z" fill="#6e7a82"/>
|
||||
<text x="652.5" y="184" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">668.7 MB</text>
|
||||
@@ -25,25 +25,25 @@
|
||||
<rect x="755" y="30" width="715" height="500" rx="14" fill="#353535"/>
|
||||
<text x="795" y="90" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="31" font-weight="600" fill="#ffffff">CPU at 60 fps</text>
|
||||
<text x="795" y="116" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#8e8e8e">percent of one core, steady state (3 s to 8 s)</text>
|
||||
<path d="M824.5 452 v-45 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v45 z" fill="#56c7ff"/>
|
||||
<text x="847.5" y="371" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">6.3%</text>
|
||||
<path d="M824.5 452 v-47.4286 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v47.4286 z" fill="#56c7ff"/>
|
||||
<text x="847.5" y="368.571" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">6.6%</text>
|
||||
<text x="847.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="600" fill="#ffffff">Software</text>
|
||||
<path d="M930.5 452 v-27.1905 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v27.1905 z" fill="#56c7ff"/>
|
||||
<text x="953.5" y="388.81" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">4.1%</text>
|
||||
<path d="M930.5 452 v-34.4762 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v34.4762 z" fill="#56c7ff"/>
|
||||
<text x="953.5" y="381.524" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">5.0%</text>
|
||||
<text x="953.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="600" fill="#ffffff">D3D12</text>
|
||||
<path d="M1036.5 452 v-38.5238 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v38.5238 z" fill="#56c7ff"/>
|
||||
<text x="1059.5" y="377.476" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">5.5%</text>
|
||||
<path d="M1036.5 452 v-40.9524 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v40.9524 z" fill="#56c7ff"/>
|
||||
<text x="1059.5" y="375.048" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">5.8%</text>
|
||||
<text x="1059.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="600" fill="#ffffff">OpenGL</text>
|
||||
<path d="M1142.5 452 v-117.857 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v117.857 z" fill="#6e7a82"/>
|
||||
<text x="1165.5" y="298.143" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">15.3%</text>
|
||||
<text x="1165.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="400" fill="#b9b9b9">Flutter</text>
|
||||
<path d="M1248.5 452 v-152.667 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v152.667 z" fill="#6e7a82"/>
|
||||
<text x="1271.5" y="263.333" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">19.6%</text>
|
||||
<path d="M1248.5 452 v-161.571 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v161.571 z" fill="#6e7a82"/>
|
||||
<text x="1271.5" y="254.429" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">20.7%</text>
|
||||
<text x="1271.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="400" fill="#b9b9b9">Electron</text>
|
||||
<path d="M1354.5 452 v-232 a6 6 0 0 1 6 -6 h34 a6 6 0 0 1 6 6 v232 z" fill="#6e7a82"/>
|
||||
<text x="1377.5" y="184" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="18" font-weight="600" fill="#ffffff">29.4%</text>
|
||||
<text x="1377.5" y="478" text-anchor="middle" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" font-weight="400" fill="#b9b9b9">KMP</text>
|
||||
<line x1="785" y1="452.5" x2="1440" y2="452.5" stroke="#4a4a4a" stroke-width="1"/>
|
||||
<text x="40" y="562" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="15" fill="#b9b9b9">Drawing 64 rotating boxes at 60 fps in an 800×600 window. Lower is better in both panels.</text>
|
||||
<text x="40" y="586" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#8e8e8e">Three Reaktor renderers (measured 2026-11-07) against the alternatives from other tech stacks (2026-10-24), on the same machine — details in benchmarks/BENCHMARKS.md.</text>
|
||||
<text x="40" y="586" font-family="Segoe UI, -apple-system, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#8e8e8e">Three Reaktor renderers (0.11.0) and Electron measured 2026-11-09, Flutter and Kotlin Multiplatform 2026-10-24, all on the same machine — details in benchmarks/BENCHMARKS.md.</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Reference in New Issue
Block a user