parseInt (v4)

Revision 4 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
parseInt with radix parameter
var x = Math.floor(10.5);
ready
parseInt without radix parameter
var x = 10.5 >> 0;
ready
bitwise operator
var x = 10.5 | 0;
ready

Revisions

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