Commit Graph
4 Commits
Author SHA1 Message Date
Anees Iqbal d7a6b11058 🆕 Print the bench's GPU-bound repetitions, not only the frame cases'
bench -v printed a line a repetition for the frame cases alone, so the lane
gate could judge only those by the GPU's core clock around each repetition:
msi's 5080 holds its core at 1.2 to 1.5 GHz under its power cap for up to
12 s, and compute.fma, blit.256m, sample.tex and mps.sgemm ran inside that
window as often as not, with nothing to tell which of their repetitions did.
They now print theirs too: "# rep NAME R at S s: MS ms, key=value ...", the
repetition's start from the case's, its time, and the numbers the case's line
takes the medians of. Without -v nothing changes, and the frame cases' lines
are as they were.
2026-11-05 21:59:25 -08:00
Anees Iqbal 4f4d26d159 🆕 Let bench encode draws.10k on several threads onto one queue
bench -j THREADS has THREADS threads encode and commit draws.10k's command
buffers at once onto its one queue, as an app with several encoding threads
does, so the host's lowering of one queue's buffers in parallel can be
measured; the default stays one thread, and the line now says how many.
2026-11-05 21:59:25 -08:00
Anees Iqbal 62f214eabf 🆕 Print each repetition of the benchmark's frame cases on request
bench -v prints a line for each repetition of the frag cases: when it began,
its frames (one command buffer each) and their rate. On the RTX 5080 the
driver's clock ramp under sustained full load took from 1 to 8 s in both
GPU lanes, which a case's median hides; the lines show the submit cadence
and let a run be split at the ramp against the host's clock samples.
2026-11-05 21:59:22 -08:00
Anees Iqbal bf67af7cbf 🆕 Add a GPU benchmark of the Metal device to the bundle's tools
To compare the x86-64 guest's GPU lanes on one host, and against real Macs,
under GPU-heavy work rather than desktop compositing: fragment ALU at 1080p
and 2160p and fill, compute FMA, a 256 MiB blit, texture sampling, 10,000
draws a command buffer, Shared upload and readback, MPS SGEMM at 2048 and
4096, and an on-screen CAMetalLayer at display rate. Each case warms up,
repeats (at least REPS times, or -m seconds), prints its medians on one
line, and marks its start, so a case that hangs or dies is known.
2026-11-05 21:59:22 -08:00