Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Object symbol key lookup versus string key lookup
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0
Browser:
Firefox 146
Operating system:
Windows
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
Symbol key lookup
1645172992.0 Ops/sec
String key lookup
1539739008.0 Ops/sec
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"]