test (v2)

Revision 2 of this benchmark created on


Setup

var o = {1:1, 2:2};
    var n = 0;
    var s = 'string';

Test runner

Ready to run.

Testing in
TestOps/sec
1
switch(s){
case 'a':
  break;

case 'b':
  break;

case 'string':
  return true;
}
ready
2
switch(s){
case 'string':
  return true;

case 'a':
  break;

case 'b':
  break;
}
ready

Revisions

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