if vs logical and plus parenthesis

Benchmark created on


Preparation HTML

<script>
  var x=0;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
if
if(true){
    x++;
    x++;
    x++;
    x++;
}
ready
&&
(true) && (
    x++,
    x++,
    x++,
    x++
);
ready

Revisions

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