Benchmark scope and measurement
Measure SDK changes with equivalent application work on exact installed Wasm artifacts. Native timings and focused probes help locate costs; they do not establish complete canister instructions, callback recovery or KEEP behavior. Use testing for correctness and lifecycle checks, and profiling to attribute execution costs.
Define equivalent work
Keep inputs, population, operation order, concurrency, batch sizes, instruction limits and completion criteria the same between candidates. Record successful operations, rejections, callbacks, retries and maintenance work so an apparent improvement cannot come from doing less work. Include latency and memory costs alongside replicated instructions.
For collection comparisons, use equivalent logical results. Include request preparation, sorting, workspace initialization, output construction and retirement. A grouped lookup includes the work needed to group its inputs; a frozen index replacement includes construction and disposal. Filter-only probes and filter plus exact lookup answer different questions. Approximate summaries and exact collections also need different correctness oracles.
Measure each affected collection family and operation separately. Shared allocator or Store changes can affect both Nyxus and Hylix. A gain in one family or a narrow lookup probe does not establish an improvement elsewhere. Report regressions and unmeasured paths explicitly.
Keep measurement boundaries explicit
Record complete replicated instructions, including API and page charges. Report body counter intervals and cycle debits separately. Separate observer queries, aborted or restarted attempts, scheduler work and maintenance tails from the chosen operation totals. Do not subtract a no-op as a universal SDK base cost.
Populate collections in earlier committed calls. If warming after restoration, warm once before the measured sequence and take the cycle baseline afterward; do not insert extra warmups between consecutive calls. Preserve independent paths and keys when testing distant reads. Each physical execution or callback starts fresh memory tracking; an earlier call does not warm that tracking.
Report Wasm and stable capacity separately from live allocation and host RSS. Minima's exclusive 64 KiB blocks, Hylix's byte cache and ordinary allocator capacity all contribute costs beyond a collection's logical payload. See runtime memory and Minima.
Preserve reproducible evidence
Keep each run's report, raw measurements and exact source/build identities together. The canonical builder produces an artifact manifest; retain it with the installed Wasm, interface and generated client. Record the compiler, target, server binary hash, settings, initial state and operation sequence. Preserve failures and capture limits with the successful results.
Use matched controls and fresh physical calls. Associate every result with its own artifact and operation scope; later source does not inherit those numbers. Source attribution additionally needs the matching debug bundle described in profiling.