Coercion vs Casting (v8)

Revision 8 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Coercion
~~'50';
ready
parseInt
parseInt('50', 10);
ready
Bitshift
'50' >> 0;
ready
Math.floor
Math.floor('50');
ready

Revisions

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