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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Browser:
Chrome 129
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Check es6, not call
35.4M/s
Check es5, not call
35.4M/s
No check, call
19.0M/s
View exact numbers
Test name
Executions per second
✓
Check es6, not call
35,378,024 Ops/sec
Check es5, not call
35,352,496 Ops/sec
No check, call
19,039,072 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();