Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Symbol bullshit
(version: 0)
Benchmark.js
Comparing performance of:
symbol vs just a stringy vs object
Created:
3 years ago
by:
Registered User
Go 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
object
31/s
just a stringy
31/s
symbol
1/s
View exact numbers
Test name
Executions per second
✓
object
31 Ops/sec
just a stringy
31 Ops/sec
symbol
1 Ops/sec
Related benchmarks
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?