Number() vs parseInt() vs plus (v59)

Revision 59 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
Math.floor("10.1");
ready
Number Constructor
Number("10.1")
ready
parseInt
parseInt("10.1");
ready
~~
~~10.1
ready
~~""
~~"10.1"
ready

Revisions

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