Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Object symbol key lookup versus string key lookup
(version: 1)
Comparing performance of:
Symbol key lookup vs String key lookup
Created:
9 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const SYMBOL = Symbol("SYMBOL") const symbolObj = { [SYMBOL]: 1 } const stringObj = { string: 1 }
Tests:
Symbol key lookup
symbolObj[SYMBOL]
String key lookup
stringObj["string"]
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Symbol key lookup
String key lookup
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0
Browser/OS:
Firefox 146 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Symbol key lookup
1645172992.0 Ops/sec
String key lookup
1539739008.0 Ops/sec
Comments
Confirm delete:
Do you really want to delete benchmark?