parseFloat vs parseInt (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
parseFloat
var f = parseFloat("3.33");
ready
parseInt
var i = parseInt("3.33*100", 10) / 100;
ready
*1
var i = "3.33" * 1;
ready
+
var i = +"3.33";
ready

Revisions

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