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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0
Browser:
Chrome 138
Operating system:
Linux
Device Platform:
Desktop
Date tested:
9 months ago
Test name
Executions per second
Check es5, not call
90057464.0 Ops/sec
Check es6, not call
86406592.0 Ops/sec
No check, call
65211388.0 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();