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/124.0.0.0 Safari/537.36
Browser:
Chrome 124
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
noop arrow
11.9M/s
noop
11.9M/s
if
11.7M/s
View exact numbers
Test name
Executions per second
✓
noop arrow
11,906,266 Ops/sec
noop
11,903,417 Ops/sec
if
11,698,941 Ops/sec
Script Preparation code:
var undef = undefined; var noop = function noop(){}; var noopArrow = () => {};
Tests:
if
if (undef) { undef(); }
noop
noop();
noop arrow
noopArrow();