parseInt (v3)

Revision 3 of this benchmark created on


Description

added +"String" to convert "10" to number first.

Test runner

Ready to run.

Testing in
TestOps/sec
parseInt with radix parameter
var x = parseInt(+"10", 10);
ready
parseInt without radix parameter
var x = parseInt(+"10");
ready
bitwise operator
var x = +"10" | 0;
ready

Revisions

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