parse )||0 vs ||'0')

Benchmark created on


Preparation HTML

<script>
  var empty='';
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
)||0
parseInt(empty||'0');
ready
||'0')
parseInt(empty)||0;
ready

Revisions

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