Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
if vs noop
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/127.0.0.0 Safari/537.36
Browser:
Chrome 127
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
noop
15.1M/s
noop arrow
15.0M/s
if
14.1M/s
View exact numbers
Test name
Executions per second
✓
noop
15,107,864 Ops/sec
noop arrow
14,990,663 Ops/sec
if
14,073,829 Ops/sec
Script Preparation code:
var undef = undefined; var noop = function noop(){}; var noopArrow = () => {};
Tests:
if
if (undef) { undef(); }
noop
noop();
noop arrow
noopArrow();