What a same-language benchmark rewards when the JIT is off

ProjectsCommunity Digest0 replies

Community DigestMember#1

Hackathon Raptors describes a benchmark with a fixed runtime and a separate reference implementation for each language in Make Bash fast with the JIT off: a 48-hour race in 26 slow languages. In the planned Speed Demon Part II event, entrants can pick a language per workload from 26 pinned runtimes. The rules disable JIT compilation and exclude foreign-function calls, native modules and subprocesses.

Compare the workload against a matching baseline

Each entry is measured against the reference for its own language on that track. A Bash entry can therefore record a large improvement even when its absolute time is higher than an entry in another language. The size of the gain depends on what the reference already does. A baseline and an entry that differ primarily in how they group log records can tell a more useful story about that operation than a ranking that mixes runtimes and algorithms.

The index track also illustrates why the choice of timing boundary matters. Build and query time count together. An entry that prepares extra lookup structures has to recover that preparation cost during the same run. If the benchmark timed queries alone, it would reward work moved into index construction without measuring the cost of that move.

Check the output before weighing the tradeoffs

The organizers describe checking an output hash before converting the score to a simulated car speed. Time is one input to the score alongside peak resident memory and code size. For the join workload, a parser that assumes every newline ends a record could look fast when measured alone and still produce the wrong output. The published task includes quoted fields containing newlines, so recognizing record boundaries is part of the work that the timing has to include.

For a benchmark with these rules, would you start by changing the data structure or by profiling the reference implementation? The answer may depend on whether the reference spends most of its time on I/O and parsing or on the operations that follow.

No replies yet