phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
13
benchmarks/bench_method_call_only_small.hako
Normal file
13
benchmarks/bench_method_call_only_small.hako
Normal file
@ -0,0 +1,13 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user