Benchmarks for LayerFS 2.0. Read AGENTS.md before running any of them.
Starting from scratch (2026-12-02). Everything that existed before is
archived, unchanged, in .archive/2026-12-02/. This repository now holds one
image, one empty folder per suite, and the index script. Each suite is written
new from its batch issue; the campaign, its rules and its image are in
layerfs-project#218.
Suites are grouped into batches, one folder per batch, named for the batch
(fs-workspace-one-shot/, …, fs-basic/). The contents table below lists the
batches in run order and links their suites.
Each benchmark belongs to one group (workspace, storage or
file-calls) and measures either speed (operation times) or storage
(bytes stored); there are no correctness checks. Speed timings are diagnostic
unless a report says otherwise.
| Order | Batch | What it covers | Spec | Suites |
|---|---|---|---|---|
| 1 | fs-workspace-one-shot | Speed with one Workspace per row (mount, Exec, Commit, unmount) on starting states that are cheap to build: edits on large files, trees of tiny files, Git, directory operations. | layerfs-project#219 | directory-ops, git-status, large-file-edit, tiny-files-read, tiny-files-write |
| 2 | fs-storage | Store bytes: deduplication, deltas, compression, history growth and bytes won back by store compact. |
layerfs-project#221 | compact, compression, dedupe, deltas, history-growth |
| 2 | fs-workspace-lifecycle | Speed of Workspaces over time: Mount and Commit as history and Branch count grow, repeated cycles, and Workspaces committing at once. | layerfs-project#220 | branch-count, concurrent-commits, history-depth, repeat-cycles |
| 3 | fs-store-calls | Speed of calls on a project with no Sandbox or mount: commit, branch and file reads and writes, as history, Branch count and tree size grow. |
layerfs-project#222 | branch-calls, file-reads, file-writes, history-reads |
| 4 | fs-basic | Speed of standard filesystem benchmark tools through a mounted Workspace: small files (smallfile), metadata (mdtest) and file I/O (fio). | layerfs-project#223 | fio, mdtest, smallfile |
fs-workspace-one-shot/ · spec layerfs-project#219
| Benchmark | Group | Measures | What it measures | Latest run |
|---|---|---|---|---|
| directory-ops | workspace | speed | time to rename and delete a large directory and build a deep path | 2026-12-03 · c85cef55 (postgresql) · 3 of 3 rows ran; none failed; all times are diagnostics · report |
| git-status | workspace | speed | git status time on a Git checkout of the tiny-file tree | 2026-12-03 · c85cef55 (postgresql) · 2 of 3 rows ran; 1 failed; all times are diagnostics · report |
| large-file-edit | workspace | speed | Exec and Commit time for a 4 KiB edit on a 1 MiB and a 100 MiB file | 2026-12-03 · c85cef55 (postgresql) · 10 of 10 rows ran; none failed; all times are diagnostics · report |
| tiny-files-read | workspace | speed | stat, read and walk time on trees of tiny files, and Mount time by tree size | 2026-12-03 · c85cef55 (postgresql) · 8 of 9 rows ran; 1 failed; all times are diagnostics · report |
| tiny-files-write | workspace | speed | change, create and delete time on trees of tiny files, with Commit and Unmount time | 2026-12-03 · c85cef55 (postgresql) · 8 of 8 rows ran; none failed; all times are diagnostics · report |
fs-storage/ · spec layerfs-project#221
| Benchmark | Group | Measures | What it measures | Latest run |
|---|---|---|---|---|
| compact | storage | storage | Store bytes won back by store compact after Branches are removed | 2026-12-03 · c85cef55 (postgresql) · 2 of 2 rows ran; none failed · report |
| compression | storage | storage | Store bytes by data type, and per small file | 2026-12-03 · c85cef55 (postgresql) · 3 of 3 rows ran; none failed · report |
| dedupe | storage | storage | Store bytes for copies and shared dependencies | 2026-12-03 · c85cef55 (postgresql) · 3 of 3 rows ran; none failed · report |
| deltas | storage | storage | Store bytes for edits, by how the file is saved | 2026-12-03 · c85cef55 (postgresql) · 5 of 5 rows ran; none failed · report |
| history-growth | storage | storage | Store bytes as edit history and Branches grow | 2026-12-03 · c85cef55 (postgresql) · 3 of 3 rows ran; none failed · report |
fs-workspace-lifecycle/ · spec layerfs-project#220
| Benchmark | Group | Measures | What it measures | Latest run |
|---|---|---|---|---|
| branch-count | workspace | speed | Mount and Commit time as the number of Branches grows | 2026-12-03 · c85cef55 (postgresql) · 6 of 6 rows ran; none failed; all times are diagnostics · report |
| concurrent-commits | workspace | speed | Commit time when K Workspaces on K Branches commit at once | 2026-12-03 · c85cef55 (postgresql) · 3 of 3 rows ran; none failed; all times are diagnostics · report |
| history-depth | workspace | speed | Mount and Commit time as a Branch's history grows | 2026-12-03 · c85cef55 (postgresql) · 6 of 6 rows ran; none failed; all times are diagnostics · report |
| repeat-cycles | workspace | speed | per-cycle time over 20 cycles, one Workspace per call against one kept open | 2026-12-03 · c85cef55 (postgresql) · 2 of 2 rows ran; none failed; all times are diagnostics · report |
fs-store-calls/ · spec layerfs-project#222
| Benchmark | Group | Measures | What it measures | Latest run |
|---|---|---|---|---|
| branch-calls | file-calls | speed | branch fork, get, publish, list and remove time as the number of Branches grows | 2026-12-03 · c85cef55 (postgresql) · 15 of 15 rows ran; none failed; all times are diagnostics · report |
| file-reads | file-calls | speed | file read, stat, list, glob and grep time without a Workspace | 2026-12-03 · c85cef55 (postgresql) · 7 of 10 rows ran; 3 failed; all times are diagnostics · report |
| file-writes | file-calls | speed | file write, edit, rm, mkdir, mv, cp and apply time, one Commit each | 2026-12-03 · c85cef55 (postgresql) · 10 of 10 rows ran; none failed; all times are diagnostics · report |
| history-reads | file-calls | speed | commit list, get and diff, file history, read --at and blame time as history grows | 2026-12-03 · c85cef55 (postgresql) · 18 of 18 rows ran; none failed; all times are diagnostics · report |
fs-basic/ · spec layerfs-project#223
| Benchmark | Group | Measures | What it measures | Latest run |
|---|---|---|---|---|
| fio | workspace | speed | sequential and random file I/O time | 2026-12-03 · c85cef55 (postgresql) · 4 of 4 rows ran; none failed; all times are diagnostics · report |
| mdtest | workspace | speed | create, stat and remove time for 512 empty files or directories | 2026-12-03 · c85cef55 (postgresql) · 2 of 2 rows ran; none failed; all times are diagnostics · report |
| smallfile | workspace | speed | two-worker small-file create, read, stat, rename and delete time | 2026-12-03 · c85cef55 (postgresql) · 5 of 5 rows ran; none failed; all times are diagnostics · report |
| Path | What it is |
|---|---|
fs-workspace-one-shot/ … fs-basic/ |
one folder per batch, holding one folder per suite: README, then AGENTS.md, src/ and tests/ once written |
| shared/ | the runner every suite uses |
| image/ | the one Sandbox image, layerfs-bench:v2; build it from this repository's remote (see its Dockerfile) |
| tools/ | the index script and repository checks |
| result/ | published reports, result/<date>/<suite>/<full LayerFS commit>/report.md, and the rules for them |
.archive/ |
everything before 2026-12-02; frozen, not a starting point |
The index above is generated. After publishing a report, run
python3 tools/readme_index.py; --check reports stale tables.