x = x || dflt vs x || (x = dflt) (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script>
  a = 0
  b = 1
  dflt = 1
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
x = x || dflt
a == a || dflt
b == b || dflt
ready
x || (x = dflt)
a || (a == dflt)
b || (b == dflt)
ready

Revisions

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