Files
hakorune/benchmarks/bench_method_call_only.hako

15 lines
290 B
Plaintext

// Interpreter-level microbench: method call on preallocated Box
static box Main {
main() {
local i = 0
local s = new StringBox("nyash")
local total = 0
loop(i < 2000000) { // 2e6 method calls
total = total + s.length()
i = i + 1
}
return total
}
}