Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Random tes 12345678
(version: 1)
Comparing performance of:
Symbol vs String
Created:
one year ago
by:
Guest
Go to the latest result
Script Preparation code:
var map = new Map(); var object = {}; var sym = Symbol("key"); var str = "key"; map.set(sym, 1); object.str = 1;
Tests:
Symbol
var test1 = map.get(sym);
String
var test2 = object.str;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Symbol
String
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser/OS:
Chrome 131 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
String
115.7M/s
Symbol
57.5M/s
View exact numbers
Test name
Executions per second
✓
String
115,729,560 Ops/sec
Symbol
57,501,720 Ops/sec
Related benchmarks
Map vs Object
map-array-object-get-set
Object access by key vs Map.get
Object VS new Map
Random tes 1234567
Comments
Confirm delete:
Do you really want to delete benchmark?