Double Tilde vs. ParseInt

Benchmark created on


Preparation HTML

<script>
  var i = '1.6',
      j;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Double Tilde
j = ~~i;
ready
ParseInt
j = parseInt(i);
ready

Revisions

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