Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
getting seconds from milliseconds
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/131.0.0.0 Safari/537.36
Browser:
Chrome 131
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Math.floor
76.5M/s
% operator
52.5M/s
View exact numbers
Test name
Executions per second
✓
Math.floor
76,516,792 Ops/sec
% operator
52,531,804 Ops/sec
Script Preparation code:
this.numA = Math.random() * 100000;
Tests:
Math.floor
return Math.floor(this.numA / 1000);
% operator
return (this.numA - this.numA % 1000) / 1000;