Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
math floor1123121
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
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:
Chrome 130
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
~~
7.7M/s
n & n
4.1M/s
n | n
4.0M/s
math.floor
4.0M/s
View exact numbers
Test name
Executions per second
✓
~~
7,666,136 Ops/sec
n & n
4,065,721 Ops/sec
n | n
4,026,658 Ops/sec
math.floor
3,987,575 Ops/sec
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;