rosetta compiles a program, hands the bytecode to a decompiler, recompiles what comes back and runs both. if the output doesn't print exactly what the original printed, it's wrong, whatever it looks like.
# build it once git clone https://github.com/Scrensayol/rosetta cd rosetta && cargo build --release # ~850 round trips; --tier full runs ~12,000 ./target/release/rosetta bench \ --decompiler 'mine=/path/to/decompiler {}' \ --version mine=1.0
decompilers grade themselves on how the output looks. rosetta grades them on what it does.
official runs of the same suite on the same bytes. wrong output is the number that matters most: a refusal tells you it can't, a wrong answer doesn't.
anyone can run the bench and share the json. the viewer tells you what you're looking at.
anything that takes a bytecode file and prints source can be benched: a binary, a script, or a web api through a small adapter.