Floor Min
Date tested:
7 years ago
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Test name
Executions per second
Floor first
954154.8 Ops/sec
Min First
1294987.0 Ops/sec
Inline If
1454303.0 Ops/sec
Benchmark definition (click to collapse):
Script Preparation code:
var a = 14543630892.678034; var b = 23445842646.499996;
Tests:
Floor first
Math.min(Math.floor(a), Math.floor(b));
Min First
Math.floor(Math.min(a, b));
Inline If
Math.floor( a < b ? a : b )
Open this result on MeasureThat.net