← NOX BLOG

Comparing quantized backends

With Comfy Kitchen, ComfyUI got 2.5× to 3.4× faster in our benchmark. Nox still wins every cold run, by 1.40× to 2.89× on average.

Our first benchmark post put Nox 3.2× ahead of ComfyUI on an RTX 4080. After it went up, the ComfyUI team kindly told us to run with --use-ck-attention on CUDA 13+, which enables their new Comfy Kitchen attention backend. ComfyUI’s warm times in our benchmark dropped by 2.5× to 3.4× on average, depending on the GPU.

Mean warm speedup, Nox over ComfyUIBeforeAfter
RTX 3090, Low3.00×1.11×
RTX 3090, High2.67×1.00×
RTX 4080, Low3.21×1.23×
RTX 4080, High3.40×1.17×
RTX 5090, Low2.98×1.87×
RTX 5090, High2.63×1.31×
H100, Low4.84×1.54×
H100, High4.11×1.31×

Each value is the mean of the per-pipeline speedups over all 16 pipelines. The full tables are on the RTX 3090, RTX 4080, RTX 5090 and H100 pages.

What we had wrong

The benchmark harness pinned PyTorch 2.9.1 built for CUDA 12.8. On a CUDA 12 build, ComfyUI disables the CUDA backend of Comfy Kitchen, its own kernel library. That backend holds the INT8 ConvRot matmul and attention kernels, which are exactly what the INT8 checkpoints in this benchmark need. Without them ComfyUI falls back to much slower paths. The fix moves the harness to the CUDA 13.0 build and starts ComfyUI with --use-ck-attention.

ComfyUI warm, RTX 4080, LowCUDA 12.8CUDA 13.0 + Comfy KitchenFaster by
Qwen Image 2.135.49s7.38s4.81×
MiniMax-H3 Video86.94s20.98s4.14×
LTX-2.3 Video29.65s12.51s2.37×
Stable Diffusion XL6.37s6.18s1.03×

Where ComfyUI catches up

In the final runs on the RTX 4080, RTX 5090 and H100, Nox is ahead on all 16 pipelines, although some are close to being on par on the RTX 4080. On the RTX 3090, ComfyUI is now faster than Nox on 12 of the 16 High cases. Averaged over all pipelines, the two engines are even at High (1.00×). These are the five largest losses:

RTX 3090, HighNoxComfyUISpeedup
Ideogram 413.57s12.53s0.92×
Qwen Image Edit 251113.01s12.15s0.93×
Qwen Image 2.131.51s29.71s0.94×
MiniMax-H3 Video80.93s77.11s0.95×
MOSS-Image8.69s8.26s0.95×

Cold runs are a different story. Nox wins every cold run on all four GPUs:

Cold speedup, Nox over ComfyUIMeanLowestHighest
RTX 30901.49×1.12×1.98×
RTX 40801.40×1.19×1.66×
RTX 50902.65×1.29×3.96×
H1002.89×1.52×6.19×

The first rerun with Comfy Kitchen on the RTX 4080, we also had losses. We fixed these before the final run:

PipelineRunNoxComfyUISpeedup
Ideogram 4Low5.18s3.50s0.68×
Ideogram 4High16.08s8.49s0.53×
Qwen Image Edit 2511High10.96s7.61s0.69×
Qwen Image 2.1 EditLow8.86s8.61s0.97×
Qwen Image 2512Low2.42s2.33s0.96×

Ideogram 4 was a real gap in Nox. Its attention heads are 256 wide, which our Sage attention kernel didn’t support, so Ideogram 4 ran on a slower fallback. ComfyUI’s Comfy Kitchen attention has no such gap. Once we added 256-wide heads, Ideogram 4 High went from 16.08s to 8.28s, now 1.07× ahead of ComfyUI. On the H100, Nox already wins Ideogram 4 High by 1.10× with a 256-wide Sage variant. A cuDNN kernel measured faster there, so that case is still open.

Qwen Image Edit 2511 High was a gap in the harness. ComfyUI ran a small warmup before each High case. The old setup needed this warmup because it restarted ComfyUI with Sage attention for High. That warmup already encoded the 1536×1536 reference image, so the measured request skipped work that Nox did inside the timer. Now both engines encode the High reference inside the measured request.

Cold, low and high runs

The first post measured one cold and one warm request per pipeline, at one size. The benchmark now reports three runs:

RunSeedImagesVideosState
Cold421024×1024768×512First request for a model, weights read from disk
Low431024×1024768×512Weights loaded
High431536×15361344×768Weights loaded, right after Low

Low is the warm run from the first post with one change: MiniMax-H3 now renders 124 frames instead of 56, so Low and High differ only in resolution.

Cold now means cold from disk. A fresh process alone isn’t enough, because Linux keeps recently read files in its page cache and the “cold” load would read them from RAM. Both harnesses evict every checkpoint file from the page cache once, when the process starts. Each pipeline’s first request is its cold run, so later pipelines that share a checkpoint find it already loaded. FLUX.2 Klein 9B Edit runs right after FLUX.2 Klein 9B on the same weights, which is why its cold time can be shorter. The pipelines execute in the exact order shown in the table on the front page.

Nox uses SageAttention in every run. ComfyUI uses Comfy Kitchen attention in every run. We’re now comparing the fastest attention backend each engine has.

MiniMax-H3 High is the one case with sparse attention on both sides. Nox keeps 15% of key tiles, as described in our sparse attention post. ComfyUI uses Veda with its trained sparsity. This is the only case that isn’t identical. We kept it because no sparse attention runs in both engines, and ours is close to Veda’s.

Edit pipelines

The first post covered text-to-image and video. The benchmark also runs three image edit pipelines that we left out. All three get the same input image and the same instruction:

Turn the scene into a moonlit night: a full moon and a starry sky above the clouds, warm lantern light glowing in every window of the city, while keeping the architecture, waterfall and composition unchanged.

The edit input: a pastel floating city above the clouds in daylight, with two waterfalls

The outputs below are from the H100 run. Nox is on the left and ComfyUI is on the right.

FLUX.2 Klein 9B Edit

Nox: FLUX.2 Klein 9B Edit, floating city turned to a moonlit night, 1536×1536
Nox
ComfyUI: FLUX.2 Klein 9B Edit, floating city turned to a moonlit night, 1536×1536
ComfyUI

Qwen Image 2.1 Edit

Nox: Qwen Image 2.1 Edit, floating city turned to a moonlit night, 1536×1536
Nox
ComfyUI: Qwen Image 2.1 Edit, floating city turned to a moonlit night, 1536×1536
ComfyUI

Qwen Image Edit 2511

Nox: Qwen Image Edit 2511, floating city turned to a moonlit night, 1536×1536
Nox
ComfyUI: Qwen Image Edit 2511, floating city turned to a moonlit night, 1536×1536
ComfyUI

SSIM investigation similar to the previous benchmark post hasn’t been done yet.

Side note about ComfyUI on a cloud host

The RTX 5090 rerun on Runpod hit a problem: ComfyUI’s video runs were up to 9× slower than they should have been. The machine reported 120 CPUs to the container but only allowed it 14.45 cores of CPU time. PyTorch starts a thread for every reported CPU, so ComfyUI kept hitting that limit and was paused in 38% of scheduling periods. On this particular host, limiting ComfyUI to the allowed cores and threads manually brought its times back in line:

ComfyUI, RTX 5090, LTX-2.3 VideoNo limit14 cores
Cold153.04s41.14s
Low93.38s15.25s
High198.14s22.72s

We reran every ComfyUI case on the 5090 this way, and the CPU limit didn’t pause it once. If you benchmark in a container, check that the CPU count it reports matches the CPU time it’s allowed.

What’s next

We haven’t profiled the RTX 3090 High cases yet, and that’s where we look next. For Ideogram 4 on the H100, we’re looking at implementing a fast 256-wide head sage attention variant to beat the cuDNN kernel.

If your ComfyUI numbers for the same GPU differ a lot from ours, run the harness and tell us. That’s how this post started.