Bitwise floor
Date tested:
10 months ago
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Test name
Executions per second
Math.floor
1913435000.0 Ops/sec
Bitwise
2167974000.0 Ops/sec
Benchmark definition (click to collapse):
Script Preparation code:
var number = 12.68;
Tests:
Math.floor
Math.floor(number);
Bitwise
number | 0
Open this result on MeasureThat.net