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/133.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 133
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
bitwise invert2
100.6M/s
bitwise or
98.8M/s
Round
98.7M/s
floor
96.4M/s
trunc
95.0M/s
parseInt
80.2M/s
View exact numbers
Test name
Executions per second
✓
bitwise invert2
100,558,480 Ops/sec
bitwise or
98,821,936 Ops/sec
Round
98,738,984 Ops/sec
floor
96,362,336 Ops/sec
trunc
94,999,992 Ops/sec
parseInt
80,172,544 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)