Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Symbol bullshit
(version: 0)
Comparing performance of:
symbol vs just a stringy vs object
Created:
3 years ago
by:
Registered User
Jump to the latest result
Tests:
symbol
for(let i=0;i<1_000_000;i++){ Symbol.for(`molsh${i}`); }
just a stringy
for(let i=0;i<1_000_000;i++){ `molsh${i}`; }
object
for(let i=0;i<1_000_000;i++){ {$ref: `molsh${i}`}; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
symbol
just a stringy
object
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Android 11; Mobile; rv:133.0) Gecko/133.0 Firefox/133.0
Browser/OS:
Firefox Mobile 133 on Android
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
symbol
1.2 Ops/sec
just a stringy
30.5 Ops/sec
object
30.7 Ops/sec
Related benchmarks:
Map access with multi type keys.
es6 map access with string vs symbol keys.
es6 map access with string vs symbol keys
es6 map access with string vs symbol keys 2
es6 map access with string vs symbol keys 12
Comments
Confirm delete:
Do you really want to delete benchmark?