Performance Test String to Floatingpoint (v76)

Revision 76 of this benchmark created on


Setup

var a="132684574.1";

Test runner

Ready to run.

Testing in
TestOps/sec
Number Constructor
Number(a);
ready
parseInt
parseInt(a);
ready
Plus operator
+a;
ready
Multiply (force cast)
a * 1;
ready
JSON parse
JSON.parse(a);
ready
parseInt with base argument
parseInt(a, 10);
ready
minus 0
a - 0;
ready
new
new Number(a)
ready

Revisions

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