performance of parseFloat() (v41)

Revision 41 of this benchmark created by Marty on


Test runner

Ready to run.

Testing in
TestOps/sec
parseFloat('x')
parseFloat('4.0')
ready
parseFloat("x")
parseFloat("4.0")
ready
+x
+'4.0'
ready
Number(x)
Number('4.0')
ready
new Number(x)
// Please note that new primitives are dangerous
new Number('4.0')
ready

Revisions

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