if (v4)

Revision 4 of this benchmark created on


Setup

var a = 1;

Test runner

Ready to run.

Testing in
TestOps/sec
if
if (a == 1) {
  a = 3;
}
if (a == 2) {
  a = 3;
}
ready
else if
if (a == 1) {
  a = 3;
} else if (a == 2) {
  a = 3;
}
ready

Revisions

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