Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
ref?.current? vs ref.current?
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
Browser:
Safari 18
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
a?.current?.();
462.3M/s
a.current?.();
446.2M/s
View exact numbers
Test name
Executions per second
✓
a?.current?.();
462,276,672 Ops/sec
a.current?.();
446,150,720 Ops/sec
Script Preparation code:
var _a$current; var a = { current: function () {} };
Tests:
a?.current?.();
a === null || a === void 0 || (_a$current = a.current) === null || _a$current === void 0 ? void 0 : _a$current.call(a);
a.current?.();
(_a$current = a.current) === null || _a$current === void 0 ? void 0 : _a$current.call(a);