cast vs Math.round vs parseInt (v155)

Revision 155 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
Math.floor('89');
ready
Math.round
Math.round('89');
ready
parseInt
parseInt('89');
ready
parseInt + radix
parseInt('89', 10);
ready
cast
+'89';
ready
|0
'89'|0;
ready

Revisions

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