Two questions, one suite:
- How fast is this build of IRIS, and where does the time go? Per kernel, in guest instructions per host second, so a change to the emulator can be measured rather than felt.
- Is it still computing the right answers at speed? Every kernel produces a deterministic checksum compared against a value computed independently on the host. The share that match is the accuracy score.
It runs bare metal — no IRIX, no PROM required — as a static MIPS III binary loaded straight into RAM. The same C is compiled a second time for the host, so the machine you are running the emulator on is measured by the same kernels and the comparison between them is real rather than rhetorical.
make -C bench # build the guest binary
make -C bench golden # (re)compute the expected checksums natively
make -C bench hostbench # build the host baseline
make -C bench bench # run once against ../target/release/iris
make -C bench matrix # build and run every CPU x engine cell
make -C bench report # turn the saved results into markdown
make -C bench prebuilt # refresh the guest binary that `iris` links in
You do not need any of this to run the suite. A known-good guest binary is
checked in at prebuilt/ and linked into iris with include_bytes!, so
iris-bench run and the GUI's Benchmark tab work on a machine with no MIPS
cross toolchain at all. The Makefile is for changing the suite, not for using
it — see The checked-in guest binary.
46 kernels in six groups. Every one is deterministic, self-checking where a checksum is meaningful, and autoscaled by the harness to about 250 ms per timed run so the whole suite finishes in a couple of minutes on the interpreter and less on a JIT.
| group | kernels | what it is really testing |
|---|---|---|
int/ |
alu, alu_ilp, alu64, muldiv, branch, bitops, dhrystone | dispatch cost, 64-bit paths, unpredictable branches |
fpu/ |
scalar_s, scalar_d, divsqrt, transcend, whetstone, linpack, matmul | the FPU under sustained load, not one instruction at a time |
mem/ |
latency L1/L2/DRAM, copy, fill, stream copy/scale/triad, unaligned, random | the cache hierarchy, as a curve rather than a number |
img/ |
rgb2ycbcr, convolve3x3, sharpen5x5, dct8x8, resize, rotate90, composite, dither, histogram | what the machine was bought to do |
vid/ |
motion_est, yuv2rgb | the MPEG inner loop, and playback |
codec/ |
crc32, adler32, rle, lz, huffman | table lookups, hash chains, bit packing |
sys/ |
tlb_hit, tlb_miss, exception, cache_flush, uncached, llsc | paths that exist only because this is an emulator |
The imaging group is the point of the whole thing. An Indy shipped with a camera on the monitor and Photoshop in the catalogue; the workloads people ran were images and video. A 3x3 convolution is three strided reads and a multiply-accumulate per pixel and lives or dies on the cache model. A DCT is a register-pressure problem. Motion estimation is a branch-free absolute difference storm. Floyd-Steinberg is a strictly serial dependency across a whole frame that nothing can reorder. Between them they exercise translation, memory and dispatch in the proportions real software uses, which no ALU chain does.
The sys group is the other point. TLB refills, exception round trips,
cache maintenance and uncached device reads are where an emulator can be
catastrophically slower than the hardware it stands in for, and they are
invisible to every conventional benchmark. clanker/perf/ and clanker/jitv2/ are
full of work whose payoff shows up here and nowhere else.
Three kernels report in units with four decades of published numbers behind them, so an emulated Indy can be put next to a real one:
| kernel | unit | derived as |
|---|---|---|
int/dhrystone |
DMIPS | Dhrystone 2.1, rate / 1757 |
fpu/linpack |
MFLOPS | LINPACK 100x100 (dgefa + dgesl), rate / 1e6 |
iris-bench report computes both. One caveat and one deliberate omission:
- LINPACK generates the system once and restores it with a copy between
solves, since the harness times whatever
run()does while the reference implementation times only the factor and solve. That is ~80 KB of copy against ~690 k flops, and it is identical on every cell being compared. - Whetstone is here for its instruction mix — the classic module structure
and weights — but is reported in passes per second, not MWIPS. Converting
needs the "Whetstone instructions per loop" constant from a reference
implementation, and that is not something this suite can verify; a derived
MWIPS resting on an unchecked factor of a thousand would look authoritative
without being so. It also uses the suite's own transcendentals
(
harness/bmath.h) rather than a libm, because a libm difference between host and guest would be scored as an emulator fault.
The mem/stream_* kernels are STREAM-shaped and deliberately not STREAM: same
four loops, arrays sized to miss every cache, but an independent
implementation. Do not quote them as STREAM results.
static u64 v_dct(void); /* one fixed reference run -> checksum */
static u64 r_dct(u32 iters); /* iters passes -> work units performed */
BENCH("img/dct8x8", "blk", v_dct, r_dct, 1, BG_IMG),verify() and run() are separate on purpose. The harness picks the iteration
count for run() by measurement, so it differs between a fast host and a slow
one — a checksum taken from the timed loop would depend on how fast the machine
is and could never be compared to anything.
The rules a kernel has to follow:
- Call
work_alloc()once perrun(), outside the iteration loop. It is a bump allocator with no free. A kernel that allocates per iteration exhausts 24 MB in a handful of passes — and only at whatever iteration count the autoscaler happened to pick, which makes it look like a data-dependent failure rather than the plain bug it is. - Never checksum anything wider than a byte as raw bytes. The golden values
come from a little-endian host and the guest is big-endian;
cksum_bytesover ashort[]compares byte order, not results, and reports the difference as an emulator fault. Usecksum_u64/cksum_f64, which are defined on values. - Initialise everything you checksum. A buffer whose tail is never written folds in whatever the allocator last held, which is not the same on the host as on the guest and not even the same between two host builds.
- Say so if you mean to take exceptions.
BENCH_EXCmarks a kernel that faults on purpose. Everywhere else a nonzero count means the shared dispatcher stepped over a faulting instruction and the kernel produced a number for doing something other than what it claims.
That last one is not hypothetical. mem/unaligned scored a plausible 871 k
accesses/s while taking an address error on three loads in four, because
*(const u32 *)p promises an alignment the pointer does not have and GCC
emitted a plain lw. The checksum caught it; the exception counter now catches
the whole class.
- Write the kernel in the right file under
kernels/and register it with aBENCH(...)line in that file's table. A new file or group also goes inharness/groups.c. make -C bench goldencompiles the same C natively and rewritesgolden/golden.hwith the new checksum. Runmake -C bench hostbenchandbench/build/irisbench-host: the host baseline must score 100%, or the kernel depends on something other than its arithmetic.- In the toolchain container,
make -C bench prebuiltrebuilds the guest imageirislinks in. Commitgolden.handprebuilt/irisbench.elfwith the kernel; CI rebuilds both and fails on a byte of difference. cargo test --release --test bench_accuracy -- --ignored, and again with--features jitv2. It must report every checksum matched and no unexpected exceptions. Read clanker/testing/benchmark-suite-gotchas.md first if a checksum disagrees between host and guest.
Timing anything with CP0 Count would be measuring the timer model as much as the
workload — under IRIS, Count is virtual, materialised from a wall-clock anchor
at a count_hz inferred from the guest's own Compare writes. So the test device
(--test-device) carries two extra registers:
| register | offset | what it is |
|---|---|---|
TESTDEV_HOST_NS_LO/HI |
0x10 / 0x14 |
host monotonic nanoseconds |
TESTDEV_ICOUNT_LO/HI |
0x18 / 0x1C |
guest instructions retired |
TESTDEV_CAPS |
0x20 |
capability bits |
Reading the LO half latches the whole 64-bit value; HI returns the high word of that same latch, so LO-then-HI cannot tear.
The instruction counter is MipsCore::hot.cycles, advanced once per retired
instruction by both the interpreter and jitv2 (emit_increment_cycles),
which is what makes "guest MIPS" comparable across engines and the single most
useful number the suite produces.
The suite still measures the CP0 Count rate against the host clock at startup and prints it. That is not decoration — it is a report on the emulator's timer model, and it is what makes the fallback path honest when there is no host clock at all.
Probing matters. An emulator built before these registers existed decodes
only 16 bytes and repeats, so 0x20 aliases back onto SIGNATURE — whose low
bit is set, so a naive caps & CAP_TIMEBASE says yes and every timing comes
back frozen. That happened on the first run. The suite now rejects a CAPS word
equal to the signature and then requires the clock to actually advance. And it
never writes an unprobed offset: on an old device 0x1C aliases onto EXIT.
Without a host clock — real hardware, or an older build — everything falls back to CP0 Count at an assumed 100 MHz (a 200 MHz R4x00, Count = clock/2), and the header says so in as many words.
A human table, streamed a line at a time because the run takes minutes and something that prints nothing until it is over is indistinguishable from a hang:
benchmark unit rate/s guest-MIPS time% acc
------------------------------------------------------------------
int/alu ops 38479208 64.93 ok
fpu/linpack flop 5874487 34.25 ok
img/dct8x8 blk 3766 49.21 ok
sys/tlb_miss miss 1948786 24.94 -
------------------------------------------------------------------
wall clock 15.48 s
guest work 756.28 M instructions
emulator speed 48.85 MIPS (guest instructions per host second)
accuracy 97.5 % (39 of 40 checksums matched)
then the two rankings that answer "what is taking a while" — which are different lists, because a kernel can dominate the wall clock simply by being long, and a kernel can be terrible per instruction while barely registering in the total:
Where the time went (largest share of wall clock)
Where the emulator works hardest (fewest guest MIPS)
then a machine-readable block between IRIS-BENCH-BEGIN and IRIS-BENCH-END
that iris-bench parses. Everything in it is an integer — a freestanding %f
would need its own float formatter, and nanoseconds, instructions, work units
and checksums are all exact as integers. Rates are derived by the host, which
has a real printf.
Before it measures anything, the suite reads the machine out of the machine and prints it:
IRIS benchmark suite
CPU R4400 rev 4.0 (PRId 0x00000440)
FPU R4010 rev 0.0 (FIR 0x00000500)
L1 cache 16 KB I (16 B lines) / 16 KB D (16 B lines)
L2 cache present, 128 B lines, size not reported by the architecture
Memory 256 MB bank0 128 MB @ 0x08000000 bank1 128 MB @ 0x10000000
Board SYSID 0x00000013 Config 0x00c08483
Devices test device yes, host time base yes
Work area 0x88300000 .. 0x89b00000 (24 MB)
CP0 Count 33.000 MHz (measured against the host clock)
Every line comes from the hardware, not from what the runner was told: CP0
Config for the CPU identity and the cache geometry, the memory controller's
MEMCFG registers for the bank layout. That works with no PROM and no POST,
because --load-elf programs MEMCFG exactly as POST would before the image
starts — so this is as true of a bare-metal run as of a PROM-booted one.
It is provenance, not decoration. The mem/ kernels are a direct readout of
the cache hierarchy, so two results whose L1 sizes differ are not measuring the
same thing however close their rates look — and until this existed, nothing in
a saved result said so. The same fields go into the machine block as #cache
and #memory, so every stored result carries them.
The L2 size is reported as unknown, deliberately. Only a Triton R5000 encodes it (Config TR_SS), there is no runtime way to tell a Triton from a plain R5000, and on an R4400 those same bits mean something else entirely — so decoding them would invent a 512 KB cache out of two zero bits. The PROM knows the real size because it reads the EEPROM; the architecture does not expose it.
prebuilt/irisbench.elf is a copy of a known-good build/irisbench.elf,
checked in and linked into iris with include_bytes! (src/benchsuite.rs).
It is what makes the benchmark a product feature rather than a developer tool:
a released application has no cross toolchain, and a sandboxed one has no
writable path to unpack an image to either.
Refresh it with make -C bench prebuilt whenever you change anything the
guest is built from — the kernels, harness/, cpu-tests/harness/, the link
script, the compiler flags — and commit it alongside the source change, built
with the one pinned compiler (cpu-tests/docs/toolchain.md): the compiler
decides how much guest code each kernel runs, so an image from another one is a
different benchmark.
CI rebuilds the image and fails on any byte difference, and
make -C bench check-prebuilt reads its compiler out of the debug information
and fails if it is not the pinned one; see
prebuilt/README.md.
A bare-metal image loaded with --load-elf has no argv and no environment, so
the host leaves its request in a test-device register the guest reads at
startup (TESTDEV_RUN_CONFIG, src/dev/testdev.rs):
31 16 15 12 11 0
+---------------+-------+---------------+
| groups |repeats| time_pct |
+---------------+-------+---------------+
Every field means "unrestricted" when zero — which is what an emulator
predating the register returns — so the guest reads it unconditionally and an
older emulator simply runs everything. iris-bench run --quick sets
time_pct=30, repeats=1: about half the wall clock, the same numbers to within
a couple of percent. An iris started from the command line takes the same
fields as --test-device-run-config time_pct=30,repeats=1 (config key
test_device_run_config). The guest raises a time_pct below 10 to 10.
Quick mode never runs fewer kernels. Accuracy is the number this suite
exists to report, and a short run that quietly checked less would report the
same 100% over less ground. It gives up measurement precision and nothing else.
The effective configuration is echoed back on the #run line and stored on
every result, so a shortened run cannot be mistaken for a full one —
iris-bench reference refuses to put one in the reference table.
cargo test --release [--features jitv2] --test bench_accuracy -- --ignoredOne case per CPU (r4400, r5000, r10000_195) runs iris-bench run --iris
against the iris that command built, so the engine is the one you named. A
case fails on a checksum mismatch, on an exception from a kernel not marked
BENCH_EXC, on a guest banner that names another CPU than the case asked for,
and when the emulator has no host time base. Speed is never judged. The guest is
prebuilt/irisbench.elf, or IRIS_BENCH_ELF; set IRIS_BENCH_RESULTS to keep
the parsed results for iris-bench report.
iris-bench run --junit FILE writes a JUnit file with one case per
kernel: failed on a checksum mismatch, skipped where there is no golden value.
CI feeds it to the pull request's annotations, see
TESTING.md.
iris-bench run [--quick] [--label NAME] [--iris PATH [--elf PATH]]
iris-bench host # measure this machine with the same kernels
iris-bench matrix [--cells r4400-interp,r5000-jitv2] [--force-build]
iris-bench report [--baseline CELL] [--format md|json|text] [--across-features]
iris-bench reference --id ID [--into data/bench_reference.json]
iris-bench cells # what matrix knows how to build
iris-bench ab --a BASE --b CHANGE [--rounds 30] [--concurrent] [--across-features]
run is in-process by default: iris-bench is itself an emulator and the
guest image is linked into it, so there is no subprocess, no ELF on disk and
nothing platform-specific. Pass --iris to measure a different emulator
binary in a subprocess instead — which is what matrix does, and what the
accuracy test above does, because a cell's features live in its binary.
run --deterministic makes two runs do the same work. The suite sizes each
kernel's iteration count from the test device's clock, so on the host clock a
faster or slower run picks a different count, and the compile pool finishes
regions at different times. With the flag, JIT compiles happen on the CPU
thread and, in a ci_clock build (required), the test device's clock is
derived from retired instructions, so guest instruction counts match exactly and
host instructions retired match to a few parts per million. With --iris it
first runs the binary with --help to read its build features: line, refuses
a binary without ci_clock, and passes --jitv2-compile sync where the build
accepts it. A lightning build rejects that option, since it always compiles on
the pool, so a build with both lightning and jitv2 is refused.
The suite's rates in such a run are constants of the build, so use it to compare
instruction counts (and host cost with perf stat), and the normal mode for
speed. reference refuses these runs. The result is labelled
<label>+deterministic.
matrix builds a separate emulator per feature set, because the JIT and
lightning are compile-time cargo features. The CPU is not: it is passed as
--cpu, so cells that differ only by CPU share one binary.
| cell | features | --cpu |
|---|---|---|
r4400-interp |
(default) | r4400 |
r5000-interp |
(default) | r5000 |
r4400-jitv2 |
jitv2 |
r4400 |
r5000-jitv2 |
jitv2 |
r5000 |
r4400-lightning |
lightning |
r4400 |
r4400-jitv2-lightning |
jitv2,lightning |
r4400 |
r10000-interp, r12000-interp, r14000-interp |
(default) | r10000_195, r12000_360, r14000_600 |
r16000-interp, r16000-700-interp |
(default) | r16000_800, r16000_700 |
The R10000 family always runs the shadow caches. The suite's Indy has the test device on, which takes any part; a product Indy takes only the R4400 and R5000.
Each build is copied to bench/build/iris-<features> before the next one starts —
the next cargo build overwrites target/release/iris, and a matrix that races
its own artefacts produces results labelled with the wrong build. After the run,
the guest's own #machine cpu= line (read from PRId, so it is authoritative) is
checked against what the cell claims. cpu-tests has the same guard for the same
reason: back when the CPU was a cargo feature, an --features r5k build once
overwrote the binary between the copy and the run, and an "R4400" cell silently
exercised an R5000.
The report gives per-cell summaries with DMIPS/MWIPS/MFLOPS, per-kernel
throughput with speedups against a baseline cell and against native, any
checksum mismatches, any unexpected exceptions, and per-cell time-share and
efficiency rankings. A rerun under the same label is kept as <label>.2.json,
<label>.3.json and so on; the report shows such a cell as one column, with the
median, [min-max] and the number of runs, and ratios use the medians.
A ratio is only printed between cells that ran alike: the same guest image, run
length (quick or full), clock (timed or ci_clock), host CPU and emulator build
features. Where they differ, report warns, names the cells, and prints n/c
in place of the ratio. --across-features allows differing features, which is
what matrix does, since comparing feature sets is its point. A ci_clock run
reads n/c against timed runs, since its rates are constants of the build, and
reference refuses it.
"Did my change make iris slower?" is a question about two builds on one host at
one moment. Build iris at the base and at the change (release profile, copied
out of the target directories), then
iris-bench ab --a ./iris-base --b ./iris-change --label-a base --label-b changeIt runs 30 rounds of the suite on one guest image. Each round runs A and B once,
in a random order, and gives each kernel one B/A ratio of nanoseconds per guest
instruction. A kernel is judged from the median of its ratios and a 99.9%
interval for that median (the order-statistic interval the sign test inverts, so
one spoiled round barely matters): SLOWER when the interval lies above 1 and
the median is past --threshold (3%); faster is the mirror image; same when
the whole interval is within the threshold either way; inconclusive otherwise,
which never means "no change". Fewer than 11 rounds judge nothing: below 15
rounds the interval is the whole range of the ratios, which misses the median
with probability 2^(1-n), and 11 is the first count where that is under 0.1%. The table
warns when guest instructions per iteration differ between A and B, a checksum
fails, the whole-suite ratio scatters by more than the threshold, or there are
too few rounds. A round in which either run fails is left out and named in the
warnings; the comparison goes on with the others.
- Short timed runs. Each kernel runs at
--time-pct 10(10% of its default length, the shortest the guest runs) and keeps the best of--repeats 3, so a round takes a fraction of a full suite. When both builds take--test-device-run-configthey are given it there. When either is older than that option,abwrites the values into a copy of the image both run instead, a compatibility path for such builds. Every run is checked to report the values asked for. An image without those symbols, run by an older build, runs as it is, with a note. - Like builds only.
abreads each binary'sbuild features:line and stops when they differ, since a flagged row would not say whether the change or the features caused it.--across-featurescompares them anyway, to measure what a feature costs. Aci_clockbuild is always refused: its clock counts instructions, so every ratio would read as no change. - The image is the one linked into your
iris-bench. Pass--elf FILEwhen the builds span a rebuild ofbench/prebuilt/, which moves every rate with no emulator change. - Pinning.
--concurrentstarts A and B together each round, so what the host does lands on both.abpins nothing; wrap it, since children inherit affinity:taskset -c 2-8 iris-bench ab --concurrent ...on Linux (pick cores that share a cache),start /wait /affinity 0x1FC iris-bench ab --concurrent ...on Windows, nothing on macOS.
Every run is saved as an ordinary result (iris-bench report --dir reads the
directory) in ab-<time>/ under --out, with the table as ab.md; attach it to
a performance PR. The result describes this host, these two binaries and this
image. Run the same binary as A and B to see the noise floor, and rerun a
suspect kernel before believing it.
Everything above runs with no operating system, which is the right way to
measure a CPU and the wrong way to answer "is this usable". bench/irix/
measures the machine as a user meets it — a filesystem on an emulated SCSI
disk, IRIX's buffer cache and syscall path, the tools that shipped in the box,
and the X server driving REX3:
# with an emulator already running --ci and IRIX sitting at a shell prompt
iris-bench irixSteps live in bench/irix/steps.toml and are ordinary shell one-liners: dd
through the filesystem cold and warm (the cold read follows a write of one and
a half times the guest's memory, so it comes from the disk, not the buffer
cache), 500 small files created/stat'd/removed, sum/compress/gzip/tar,
256 MB through the read/write syscall pair with no disk in the path, a loopback
ping flood, and xwd reading the root window back out of the framebuffer. A
step naming a requires program is skipped when that program is not
installed rather than failed — IRIX installs vary enormously and a missing
x11perf is not a benchmark result. A requires with a slash in it tests that
exact path.
A skipped step leaves a SKIP row in the saved result. A step whose command
exits nonzero leaves a FAILED row with no time, the last three lines it
printed go to the console, and the suite carries on. So end a step on a command
whose status is the step's: a pipe reports only its last command's.
A step may set timeout (seconds, default the run's --timeout). When it
overruns, the step is FAILED, iris-bench sends the guest Ctrl-C and runs a
no-op to check the shell is back, and the run stops only if it is not. The X
steps have one, since an X client waits forever on a server that does not answer.
A run that stops because the guest no longer answers records the steps it did
not reach as FAILED, still saves the result and the JUnit report, and then
exits nonzero.
iris-bench report lists a guest run in its own "Guest steps" table (step,
status, time, rate) and keeps it out of the kernel tables; --format text
counts its timed, skipped and failed steps. Guest numbers depend on the disk
image, so iris-bench reference refuses them.
--junit FILE also writes the run as a JUnit report for a CI test reporter:
one case per step, failed where the step failed or timed out, skipped where its
program is missing.
bench/irix/benchies.toml holds the benchies: Dhrystone 10M (test/dhrystone),
Whetstone 100k (test/whetstone) and iris_bench x20 (test/ib). Copy their
binaries into the guest as the file's header says; a step whose binary is
missing is skipped. --steps repeats, and with none given iris-bench irix
runs steps.toml then benchies.toml. A step's last line of output is printed
under its time, so the program's own figure ("Dhrystones per Second: ...") shows.
Timing is done on the host around one iris-ci run, with the measured no-op
round trip subtracted, so nothing depends on the guest having a usable clock.
Commands run as sh -c '<cmd>' with an IRIX-shaped PATH whatever the login
shell is — so a step command may not contain a single quote. Use what IRIX's
tools take: its dd has no m suffix, so a megabyte block is bs=1048576.
Nothing here is checksummed. These are IRIX's own tools against IRIX's own filesystem and their output is not ours to predict; the accuracy score belongs to the bare-metal half.
Status: written, not yet run. There is no IRIX disk image in this working tree, so the step list has been reasoned about rather than executed. The per-step
requiresgate is what makes that safe to ship — an install that lacks a tool skips it — but expect to adjust paths on first contact.
Through the PROM, which is also how you would run it on real hardware:
make -C bench image # volume-header image via mkvh
bench/run/run-prom.sh # boot -f dksc(0,2,8)irisbenchSlower than --load-elf, but it exercises the real path: the PROM reads the
volume header, loads the ELF and jumps to it. An image built this way can be
burned to a CD and booted on an actual Indy — which is the only way to get a
reference number that is not an emulator's opinion of itself. There is no test
device on real hardware, so results come back over serial with CP0 Count as the
time base; the header says so.
On which SGI machines? The suite identifies any MIPS CPU by name from PRId
— R4000, R4400, R4600, R4700, R5000, R8000, R10000, R12000, R14000, R16000, RM5200,
RM7000 — and an implementation it has no name for prints as MIPS-imp-0xNN
rather than refusing. That is safe to do because nothing here is
CPU-specific: the kernels are ordinary compiled MIPS III, and golden.h is
one flat table computed natively rather than a per-CPU one, so an unfamiliar
CPU is a labelling problem and not a correctness one. (cpu-tests is the
opposite, and keeps its two-value CPU_* for exactly that reason.)
What is not portable off an Indy or Indigo2 is the machine around the CPU:
the image links and self-relocates to a fixed address chosen because IP22/IP24
RAM begins at 0x08000000, the console is the SCC via IOC2 at 0x1FBD9800,
and the memory inventory comes from the MC at 0x1FA00000. The load address is
what stops it first, not the console.
So: any CPU an Indy or Indigo2 will take, on real hardware or emulated. Another SGI family needs a small platform layer, and the sane way to write one is against ARCS firmware rather than per-machine drivers — that is one path for the whole family, and it can be developed under emulation because IRIS runs a real PROM.
Full detail, including which parts of that were tested and which are reasoning:
clanker/testing/bare-metal-harness-platform-assumptions.md.
None of it touches the measurement, which is already platform-independent.
Filtering. --quick aside, there is no runtime kernel selector beyond the
group mask in TESTDEV_RUN_CONFIG, and that needs a host to set it. Comment
out a group in harness/groups.c and rebuild, or filter in the report.
harness/ benchlib (time base, work area, checksums), main (the runner),
bmath (a libm that is the same everywhere), link.ld, string.c,
tlbasm.S (the TLB refill handler for sys/tlb_miss)
kernels/ integer fpu memory imaging codec sys
gen/ golden.c (the oracle) + hostplat.c (the host platform layer)
golden/ golden.h — generated, checked in
prebuilt/ irisbench.elf — generated, checked in, linked into `iris`
run/ bare.toml, run-local.sh, run-prom.sh
The toolchain probe, the SCC console and the startup/exception code are shared
with cpu-tests/ rather than duplicated. What is not shared is the float ABI
(this suite wants the FPU; cpu-tests drives it by hand under -msoft-float),
the link layout (this one needs megabytes of working set above _end), and the
runner.
The two suites answer different questions and neither replaces the other. cpu-tests asks "is this instruction correct", one instruction at a time with clean state. This asks "is it still correct after ten million of them, and how long did that take".