// 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
  }
}

