# What speeds up a picture in ComfyUI, measured on one RTX 3090: the data kit

This folder holds the records behind *What speeds up a picture in ComfyUI, measured on one RTX 3090*
(https://research.strata2signal.com/what-speeds-up-a-picture/): a bench of four kinds of speed-up for image
models, timed on FLUX.2 [klein] 4B in ComfyUI v0.45.0 on one EVGA GeForce RTX 3090 XC3 Ultra (24 GB) capped at
250 W, with eight bets recorded before the first picture. The run took 74 minutes, from 00:46 to 02:01 UTC on
2026-11-16, and drew 354 pictures beside its warm-ups and dry runs, 264 of them behind a figure.

With this kit a reader can recount every median the page prints, read every setting of every picture, and read
the bets as they were registered. Everything of ours here is CC BY 4.0. Dates and times are UTC.

## What is here

| Folder or file | What it holds |
|---|---|
| `manifests/r1-batches.json` | Rung 1, what a batch costs: 84 rows, one a picture, in six columns (a batch of 1, 2 and 4 at 768×768 and at 1024×1024), six batches a column at seed 202 |
| `manifests/r2-step-ladder.json` | Rung 2, fewer steps: 108 rows in six columns (the distilled file at 4, 8, 12 and 32 steps; the Base file at 4 and 50), six subjects at three seeds |
| `manifests/r3-easycache.json` | Rung 3, skipped steps: 72 rows in four `EasyCache` columns, and 54 rows that repeat rung 2's control pictures beside them |
| `manifests/r4-guidance.json` | Rung 4, guidance on part of the run: 36 rows in two columns, and 18 rows that repeat rung 2's control |
| `manifests/r5-arithmetic.json` | Rung 5, cheaper arithmetic: 54 rows in three columns (the compiled model, the fp8 file, the NVFP4 file), and 18 rows that repeat rung 2's control |
| `clauses.json` | The six subjects: each one's name and its clause, the whole prompt, byte for byte as our page *FLUX 3 Image Klein, ranked blind in a game's own painted style* prints it |
| `graph.json` | The graph every request was built from, in ComfyUI's API form, as sent for rung 1's first column (the distilled file, 8 steps, 768×768, a batch of 1); the subject's clause stands where it says so |
| `plans/` | Eight plan files, one or more a rung: for each column its steps, guidance, size, batch, model file and seeds, and the one node added to the graph with its inputs |
| `scripts/recount.py` | Recounts every median from the manifests by the page's rule (standard library only) |
| `scripts/distance.py` | The rule behind every "Moved" figure, as code (needs Pillow) |
| `registration.md` | The registered text, restated: the plan's three registered sections word for word, then its amendments in the page's wording |
| `README.md` | This guide |
| `index.json` | Every file but itself, `provenance.json` and the folder's index page, each with its size and sha256 |
| `provenance.json` | Every rule applied to every file, with how many times it fired |

## A manifest row

One row is one picture. The fields a reader will want:

- `style`: the column's id (the table below); `subject` and `seed`: which picture; `prompt`: the clause sent,
  whole.
- `checkpoint`, `steps`, `cfg`, `sampler`, `scheduler`, `width`, `height`: the settings. `params.patches` is the
  node added to the graph, if any, with its inputs; `params.batch` and `params.batch_index` place a picture in
  its batch.
- `render_seconds`: ComfyUI's own execution time for the request that drew the picture, to the millisecond,
  the model already loaded. The pictures of one batch share one request, so they carry the same figure.
- `params.cap_w` and `params.temp_c_before`: the card's power limit and temperature read before the column;
  `params.comfyui_version` and `params.comfyui_commit`; `params.rendered_at`.
- `model_licence`: the render harness's own note of the licence it had on file for that row's model when the
  manifest was written. Where a note says the harness had no row for a file, the licences as we read them are
  at the foot of this guide.
- `file`: the picture's name. The pictures themselves are not in this kit (see below).

The column ids, and the row of the page each one is:

| Id | Manifest | On the page |
|---|---|---|
| `b1-768`, `b2-768`, `b4-768`, `b1-1024`, `b2-1024`, `b4-1024` | Rung 1 | The batch table: a batch of 1, 2 and 4 at each size |
| `d4`, `d8`, `d12`, `d32` | Rung 2 | The step ladder: the distilled file at 4, 8, 12 and 32 steps, guidance 1.0 |
| `b4`, `b50` | Rung 2 | The step ladder: the Base file at 4 and 50 steps, guidance 4.0 |
| `ec01-b50`, `ec02-b50` | Rung 3 | `EasyCache` at `reuse_threshold` 0.1 and 0.2 on Base at 50 steps |
| `ec02-d4`, `ec02-d8` | Rung 3 | `EasyCache` at 0.2 on the distilled file at 4 and 8 steps |
| `cfgo-b50` | Rung 4 | `CFGOverride`, `cfg` 1.0 from 0.5 to 1.0, on Base at 50 steps |
| `g1-b50` | Rung 4 | Base at 50 steps with guidance 1.0 throughout |
| `tc-d8` | Rung 5 | The bf16 file with `TorchCompileModel`, 8 steps |
| `fp8-d8`, `nvfp4-d8` | Rung 5 | The fp8 file and the NVFP4 file, 8 steps |
| `r2-b50`, `r2-d4`, `r2-d8` | Rungs 3, 4 and 5 | Rung 2's control pictures, repeated beside the columns measured against them; the same figures as `b50`, `d4` and `d8` |

## How to recount a median

From this folder:

    python3 scripts/recount.py manifests

It prints, for every column of every manifest, the count of requests, the median, the fastest and the slowest,
and what reading a new prompt cost. For rung 2 it prints, among others, `d4 … 1.667` and `b50 … 34.564`, the
two figures the page opens on. The rule it repeats is the page's:

- A request is one subject at one seed in one column. A batch is one request, counted once.
- The batch manifest counts its six batches at seed 202. Every other manifest counts the twelve pictures of
  seeds 202 and 303: each subject's seed-101 picture was drawn first and read the prompt, and is not counted.
- A median of twelve is the mean of its two middle requests. It is kept exact, so it can end in half a
  millisecond, and is rounded half up to the millisecond once. Eight of the columns end in a half; the script
  marks them.
- Every ratio and per cent on the page is taken from the unrounded medians and rounded once.

The last column of its output is the page's "a new prompt adds about 0.35 s": the median of the five seed-101
pictures whose prompt was new (every subject but the first, whose prompt the column's warm-up had read), less
the counted median.

## What this kit cannot recount

Four kinds of figure on the page were read from records that are not here:

- **The steps `EasyCache` skipped**, a count ComfyUI's log prints at the end of each request.
- **The warm-ups**, and so the compile estimate (one column's warm-up less another's), and **the card's memory**
  after a request.
- **How far a picture moved.** The page read every distance on lossless PNG masters, 345 MB of them, which are
  not in this kit. `scripts/distance.py` is the rule; on the JPEG pictures the page shows it gives a slightly
  different number, because JPEG changes pixels of its own.
- **The brightness and edge readings** beside the bet that failed, read on the same masters.

## What was taken out, and what is not here

`provenance.json` names every rule and counts it per file. No figure was moved by a rule. In short:

- **Home paths.** Each manifest row named, by a path on our own disk, the copy of the FLUX 3 page its clause
  was read from. The path is taken out; the page is
  https://research.strata2signal.com/flux3-klein-in-the-coves-style/. The same rule covers `clauses.json`.
- **Launch lines.** Each row carried the command that started ComfyUI for its column. It is all paths, so it is
  taken out. What it said that matters is on the page: ComfyUI v0.45.0, built-in nodes only, custom nodes
  switched off, no `--fast` flag.
- **The card's UUID and the name of the computer.** They are in the bench's per-column request records, its
  driver and its own summary, which is why none of those three is here whole. The card is named in full on
  the page and above; the computer's name is not published.
- **The model files.** None is here. Each is named by its repository on Hugging Face, its path there and the
  first 16 hex characters of the sha256 Hugging Face lists for it:

| File | Repository and path | sha256, first 16 |
|---|---|---|
| `flux-2-klein-4b.safetensors`, the distilled file in bf16 | `black-forest-labs/FLUX.2-klein-4B`, at its root | `ec3d4e733a771f61…` |
| `flux-2-klein-base-4b.safetensors`, the Base file | `black-forest-labs/FLUX.2-klein-base-4B`, at its root | `9c5fed22b76baea7…` |
| `flux-2-klein-4b-fp8.safetensors` | `black-forest-labs/FLUX.2-klein-4b-fp8`, at its root | `97ed34fe0567e436…` |
| `flux-2-klein-4b-nvfp4.safetensors` | `black-forest-labs/FLUX.2-klein-4b-nvfp4`, at its root | `d8c5007b6a3bbbdf…` |
| `qwen_3_4b.safetensors`, the text encoder | `Comfy-Org/Flux-2-Klein-4B`, `split_files/text_encoders/` | `6c671498573ac2f7…` |
| `flux2-vae.safetensors`, the decoder | `Comfy-Org/Flux-2-Klein-4B`, `split_files/vae/` | `868fe7b343cc8f3a…` |

  The Base, fp8 and NVFP4 files were fetched for this run on 2026-11-16. The other three were held before it
  and are matched to those repositories by digest, not by a record of where they came from. A manifest row
  carries the full sha256 of its model, text encoder and decoder, and of its picture's lossless master.
- **The pictures.** The run drew 354. The page shows sixteen of them, in four strips of one subject at seed 202:
  the stone chapel across the step ladder (six pictures) and under `EasyCache` (three), Harbormaster Haldane
  under the two guidance settings (three), and Wrenna Sault from the four 8-step files (four). Those sixteen
  are in the page's own `images/` folder, beside the page and not in this kit; the manifests name every one
  of the 354 by its `file`. The strips' subject was picked by a rule fixed before any picture was opened: the
  fourth of the six subjects, ordered from least to most moved on the rung's registered comparison. The other
  pictures and the lossless masters are not published.
- **The registration files.** They name machines and people. `registration.md` restates everything in them
  that binds the bench, and says at its head that it is a restatement.
- **The bench's driver and its own counting script, and the fuller recount made for the page.** They read the
  request records and the masters, which are not here, and they carry paths. `scripts/recount.py` was written
  for this kit, to run on what the kit holds.

## Licences

- **This kit**: CC BY 4.0. Name the source and link to the page. The six clauses are from our game RealKeep
  (https://realkeep.strata2signal.com) and are given under the same licence.
- **ComfyUI** is GPL-3.0. `graph.json` is our own request in ComfyUI's API form; it follows the Distilled
  graph of ComfyUI's klein text-to-image template, which is its makers'.
- **The four FLUX.2 [klein] 4B files** (the distilled file, Base, fp8, NVFP4): Apache 2.0, by Black Forest
  Labs' repositories. The licence file was read for the distilled file and Base on 2026-08-23; the licence
  files of the fp8 and NVFP4 repositories, fetched on 2026-11-16, are byte for byte the Base repository's.
- **The text encoder and the decoder**: the repository that lists them, `Comfy-Org/Flux-2-Klein-4B`, is tagged
  Apache 2.0 on Hugging Face (read 2026-11-17). That is the repository's tag; we did not read a licence file
  for each of the two.

## Thanks

Thanks to ComfyUI's maintainers, whose execution stamps and logs are every second in this kit; to Black Forest
Labs for FLUX.2 [klein] 4B in open weights with its Base file beside it; to Alibaba Cloud's Qwen team for
Qwen3-4B, the text encoder; to Comfy-Org and Hugging Face for the files and the listed digests that let a
reader check them; and to NVIDIA, EVGA, PyTorch and Pillow. None of them owed us anything.

If you find an error in any of this, we want to hear about it: hello@strata2signal.com.
