Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Round vs Others2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 14; Mobile; rv:135.0) Gecko/135.0 Firefox/135.0
Browser:
Firefox Mobile 135
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
bitwise or
487.2M/s
bitwise invert2
481.8M/s
floor
477.4M/s
parseInt
475.8M/s
Round
469.7M/s
trunc
468.9M/s
View exact numbers
Test name
Executions per second
✓
bitwise or
487,164,896 Ops/sec
bitwise invert2
481,794,496 Ops/sec
floor
477,406,752 Ops/sec
parseInt
475,800,000 Ops/sec
Round
469,747,392 Ops/sec
trunc
468,923,232 Ops/sec
Script Preparation code:
var num = Math.random() * 100;
Tests:
trunc
Math.trunc(num);
floor
Math.floor(num);
parseInt
parseInt(num);
bitwise invert2
~~(num);
bitwise or
num | 0
Round
Math.round(num)