Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
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]: {}}; var foo2 = {[str]: {}}; var foo3 = {key: {}}
Tests:
Symbol
foo1[sym] = {};
String
foo2[str] = {};
plain
foo3.key = {};
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?