Number() vs parseFloat() (v133)

Revision 133 of this benchmark created on


Setup

const x = String(123.12)

Test runner

Ready to run.

Testing in
TestOps/sec
Number Constructor
Number(x)
ready
parseFloat
parseFloat(x)
ready
Plus operator
+x
ready

Revisions

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