Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Read: Symbol vs String property square bracket vs plain property
(version: 1)
Comparing performance of:
Symbol vs String vs plain
Created:
11 months ago
by:
Guest
Jump to the latest result
Script Preparation code:
var sym = Symbol("key"); var str = "key"; var foo1 = {[sym]: 1}; var foo2 = {[str]: 1}; var foo3 = {key: 1}
Tests:
Symbol
foo1[sym] + 1;
String
foo2[str] + 1;
plain
foo3.key + 1;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Symbol
String
plain
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!
Comments
Confirm delete:
Do you really want to delete benchmark?