Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
math floor112312
(version: 1)
Comparing performance of:
math.floor vs ~~ vs n | n vs n & n
Created:
one year ago
by:
Guest
Go to the latest result
Script Preparation code:
var a = 123456789.6521;
Tests:
math.floor
var b = Math.floor(a);
~~
var b = ~~(a)
n | n
var b = a | a;
n & n
var b = a & a;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
math.floor
~~
n | n
n & n
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser/OS:
Chrome 130 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
~~
7.7M/s
math.floor
4.1M/s
n | n
4.1M/s
n & n
4.0M/s
View exact numbers
Test name
Executions per second
✓
~~
7,694,970 Ops/sec
math.floor
4,125,579 Ops/sec
n | n
4,078,094 Ops/sec
n & n
4,038,198 Ops/sec
Related benchmarks
Math.floor vs |0
math floor
Tilde VS floor
math floor1123121
Comments
Confirm delete:
Do you really want to delete benchmark?