Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Call or check
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/133.0.0.0 Safari/537.36 Edg/133.0.0.0
Browser:
Chrome 133
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Check es6, not call
208.8M/s
Check es5, not call
193.9M/s
No check, call
156.5M/s
View exact numbers
Test name
Executions per second
✓
Check es6, not call
208,775,360 Ops/sec
Check es5, not call
193,918,624 Ops/sec
No check, call
156,467,776 Ops/sec
Script Preparation code:
var EMPTY_FN = () => {}; var props = {};
Tests:
Check es5, not call
const { onValidated } = props; if (typeof onValidated === 'function') onValidated();
Check es6, not call
const { onValidated } = props; onValidated?.();
No check, call
const { onValidated = EMPTY_FN } = props; onValidated();