Number() vs parseInt() vs plus (v92)

Revision 92 of this benchmark created on


Preparation HTML

<script>
  var i = '10000.5432';
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Number Constructor
Number(i)
ready
parseInt
parseInt(i)
ready
Plus operator
+i
ready

Revisions

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