Number() vs parseInt() vs plus vs bitwise (v70)

Revision 70 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Number Constructor
Number("13268gsesf");
ready
parseInt
parseInt("13268gsesf");
ready
Plus operator
+"13268gsesf";
ready
Bitwise >> (right shift)
"13268gsesf" >> 0;
ready
Multiply (force cast)
"13268gsesf" * 1;
ready
Bitwise NOT
~~
"13268gsesf";
ready
parseInt with base argument
parseInt("13268gsesf", 10);
ready
Bitwise OR
"13268gsesf" | 0
ready
minus 0
"13268gsesf" - 0;
ready

Revisions

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