function foo(o) {
var result = 0;
for (var i = 0; i < 5000; ++i)
result += o.f;
return result;
}
var o = {f:42};
var result = 0;
for (var i = 0; i < 1000; ++i)
result += foo(o);
print(result);
function foo(o) {
var result = 0;
for (var i = 0; i < 5000; ++i)
result += o.f;
return result;
}
var o = {f:42};
var result = 0;
for (var i = 0; i < 1000; ++i)
result += foo(o);
print(result);