Number() vs parseInt() vs plus vs bitwise (v62)

Revision 62 of this benchmark created on


Setup

var x = "1424821476000";

Test runner

Ready to run.

Testing in
TestOps/sec
Number Constructor
Number(x);
ready
parseInt
parseInt(x);
ready
Math
Math.floor(x);
ready
parseInt with base argument
parseInt(x, 10);
ready

Revisions

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