Number() vs parseFloat() (v130)

Revision 130 of this benchmark created on


Setup

const x = "123.04"

Test runner

Ready to run.

Testing in
TestOps/sec
Number Constructor
Number(x);
ready
parseInt
parseFloat(x);
ready

Revisions

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