You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
294 B

/*
* Basic function call performance.
*
* Focuses on the cases where "fast returns" are possible.
*/
function test() {
var i;
function f() { return; }
for (i = 0; i < 1e8; i++) {
f();
}
}
try {
test();
} catch (e) {
print(e.stack || e);
throw e;
}