Files
hakorune/benchmarks/bench_method_call_only_small.hako

14 lines
329 B
Plaintext
Raw Permalink Normal View History

// Interpreter-level microbench: method call only (small loop for time-boxed runs)
static box Main {
main() {
local i = 0
local s = new StringBox("nyash")
local total = 0
loop(i < 5000) { // 5e3 method calls per run (faster per-run)
total = total + s.length()
i = i + 1
}
return total
}
}