Floor Performance (v4)

Revision 4 of this benchmark created on


Description

added test for parseInt

Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
eval("var b = Math.floor(10.5);");
ready
pipe |0 floor
eval("var b = (10.5)|0");
ready
~~ floor
eval("var b = ~~(10.5)");
ready
>> floor
eval("var b = (10.5)>>0");
ready
parseInt
eval("parseInt(10.5)");
ready

Revisions

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