the definite string-to-number conversion guide (v99)

Revision 99 of this benchmark created by me on


Setup

const n = new Date().getTime();

Test runner

Ready to run.

Testing in
TestOps/sec
Number
Number(n);
ready
parseInt with radix
parseInt(n, 10);
ready
parseInt
parseInt(n);
ready
implicit (haram)
+n;
ready
new Number
new Number(n);
ready

Revisions

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