Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
if vs && * 10 (condition)
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/109.0.0.0 Iron Safari/537.36
Browser:
Chrome 109
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
condition via `&&` statement
8.7M/s
condition via `if` statement
8.5M/s
View exact numbers
Test name
Executions per second
✓
condition via `&&` statement
8,667,167 Ops/sec
condition via `if` statement
8,483,226 Ops/sec
Script Preparation code:
function someFunction () { return; }
Tests:
condition via `if` statement
if (1) { if (1) { if (1) { if (1) { if (1) { if (1) { if (1) { if (1) { if (1) { if (1) { someFunction(); } } } } } } } } } }
condition via `&&` statement
1 && 1 && 1 && 1 && 1 && 1 && 1 && 1 && 1 && 1 && someFunction();