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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 132
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
bitwise invert2
112.4M/s
trunc
101.4M/s
Round
98.4M/s
floor
97.5M/s
parseInt
89.5M/s
bitwise or
55.0M/s
View exact numbers
Test name
Executions per second
✓
bitwise invert2
112,427,488 Ops/sec
trunc
101,436,656 Ops/sec
Round
98,431,208 Ops/sec
floor
97,479,400 Ops/sec
parseInt
89,513,464 Ops/sec
bitwise or
54,977,188 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)