floor

Benchmark created on


Description

floor vs |

Test runner

Ready to run.

Testing in
TestOps/sec
floor
var g='';
for(var t=0;t<100;t++){
g=Math.floor(2.33145645654654623123123123312312343546546);
}
ready
or
var g='';
for(var t=0;t<100;t++){
var a=2.33145645654654623123123123312312343546546;
g=(a>0) ? a|0 : (a|0)-1;
}
ready
3
var g='';
for(var t=0;t<100;t++){
var a=2.33145645654654623123123123312312343546546;
g=a|0;
}
ready

Revisions

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