cast vs Math.round vs parseInt (v151)

Revision 151 of this benchmark created by michael 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('89', 10);
ready
cast
+'89';
ready

Revisions

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