String -> Int (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var str = "12345678";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
parseInt
var i = parseInt(str);
ready
Number
var i = Number(str);
ready
Test3
var i = ~~( 1 * str );
ready

Revisions

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