Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Optional chaining native vs && && code vs babel-transformed
(version: 0)
Comparing performance of:
Optional Chaining vs && && code vs babel-transformed
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
foo = { bar: { baz: { qux: { aaa: { bbb: { ccc: { ddd: { eee: { fff: 123 } } } } } } } } };
Tests:
Optional Chaining
foo?.bar?.baz?.qux?.aaa
&& && code
foo && foo.bar && foo.bar.baz && foo.bar.baz.qux && foo.bar.baz.qux.aaa
babel-transformed
(_foo = foo) === null || _foo === void 0 ? void 0 : (_foo$bar = _foo.bar) === null || _foo$bar === void 0 ? void 0 : (_foo$bar$baz = _foo$bar.baz) === null || _foo$bar$baz === void 0 ? void 0 : (_foo$bar$baz$qux = _foo$bar$baz.qux) === null || _foo$bar$baz$qux === void 0 ? void 0 : _foo$bar$baz$qux.aaa;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Optional Chaining
&& && code
babel-transformed
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Optional chaining vs native code
Optional chaining vs native code(Opt)
Optional chaining vs native code vs babel-transform
Optional chaining vs native code v3
Comments
Confirm delete:
Do you really want to delete benchmark?