js OR test

JavaScript performance comparison

Test case created

Preparation code

<script>
  var a = 10;
  var b = 5;
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
bitweise OR
if (a > 2 | b > 3) {
 var x = 42;
}
pending…
logical OR
if (a > 2 || b > 3) {
 var x = 42;
}
pending…
logical OR (first false)
if (a > 11 || b > 3) {
 var x = 42;
}
pending…

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

Compare results of other browsers

0 comments

Add a comment