﻿# edge-dit.cpp on RTX 4090: reading speed, memory and quality together

The runtime snapshot reports useful working points, but conversion overhead, offloading and per-runtime quality references constrain cross-engine comparisons.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/edge-dit-rtx4090-runtime-benchmark-timing-quality-boundaries/
Language: en

## A runtime snapshot with explicit tradeoffs

The [edge-dit.cpp project page](https://thu-mig.github.io/edge-dit.cpp/) dates its RTX 4090 benchmark snapshot to August 5, 2026. The accompanying [performance report](https://raw.githubusercontent.com/THU-MIG/edge-dit.cpp/main/docs/performance-4090.md) compares edge-dit.cpp, Diffusers and stable-diffusion.cpp, including precision, placement and image-quality metrics.

Its useful contribution is a collection of concrete working configurations, not a universal runtime ranking. A smaller memory footprint, faster denoising and closer numerical agreement are separate properties; a configuration can improve one while compromising another.

## Similar denoising time can accompany different memory use

For SD3-Medium at the report’s matching eight-bit tier, edge-dit.cpp records 3434 ms denoising and 9147 MiB mean peak VRAM; Diffusers records 3411 ms and 18172 MiB. The similar component times therefore coexist with substantially different reported memory footprints.

This example does not establish equivalent user-visible response time. Text encoding, image decoding and other pipeline work also contribute to completion. Nor does the table alone identify which allocation strategy causes the difference. A claim about the memory mechanism would require the actual implementation and measurement boundary, rather than treating the smaller number as its own explanation.

## The timers do not always cover equivalent work

The report excludes model loading and output encoding from its end-to-end interval. Its older H200 report uses a different loading boundary. The reviewed snapshot runs serially on one card, with an untimed warmup and means across three prompts.

More importantly, stable-diffusion.cpp’s marked quantized rows include on-the-fly weight conversion in the denoising interval. The authors explicitly disallow interpreting those rows as clean cross-runtime speed ratios. Matching the column heading cannot repair unequal work inside the timer. A fair steady-inference comparison would prepare the weights outside the measured interval, while a deployment-start comparison could deliberately include preparation for every engine.

## Quality loss needs the correct reference

The report defines PSNR, SSIM and LPIPS against each runtime’s own higher-precision baseline. Consequently, a lower error against one engine’s baseline does not prove a better final image than another engine’s output. The references themselves may differ.

A cross-runtime acceptance study would need a common quality question and preserved outputs, alongside human inspection where appropriate. A within-runtime quantization study instead asks how much a precision change alters that runtime’s reference. The [quantization quality guide](/journal/quantization-quality/) explains why fitting in memory is only part of acceptance.

## Resident and offloaded rows are different operating points

Some larger-model rows cannot remain resident within the card’s capacity. Their offload or automatic-fit settings establish useful feasible configurations, but a ratio between different placement budgets does not isolate runtime efficiency. Host transfers and component residency become part of the tested system.

Precision labels deserve the same care: the report groups formats by storage width while noting that its floating-point formats are not identical. Equal width is a comparison convention, not mathematical identity. The [diffusion benchmark guide](/journal/stable-diffusion-gpu-benchmark/) provides the broader protocol.

Retain the model, scheduler, steps, prompt, seed, weight format, placement and complete timing boundary for any reproduced subset. The snapshot supports specific memory-and-time tradeoffs on its tested card. It does not establish cold-start performance, quality equivalence or a universal advantage across different models, budgets and hardware.
