Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Windows
Desktop
one year ago
Benchmark.js
With min() and max()
131.4M/s
With ternary operator #2
131.0M/s
With inline statements
130.5M/s
With ternary operator #1
124.0M/s
With if statements
123.8M/s
View exact numbers
Test name Executions per second
With min() and max() 131,357,320 Ops/sec
With ternary operator #2 131,007,864 Ops/sec
With inline statements 130,459,568 Ops/sec
With ternary operator #1 123,973,608 Ops/sec
With if statements 123,840,072 Ops/sec
Tests: