fn-expression-vs-statement (v23)

Revision 23 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Expression
var i = 0;
var j = 0;
var fn = function fn1() {
  i++;
j--;
i++;
j--;
j++;
i--;
var x = i + j;
}
fn();
ready
Statement
var i = 0;
var j = 0;
function fns() {
  i++;
j--;
  i++;
j--;
j++;
i--;
var x = i + j;
}
fns();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.