Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
string vs number vs symbol
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Browser:
Firefox 133
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
String
1752.9M/s
Number
1706.2M/s
Symbol
15.1M/s
View exact numbers
Test name
Executions per second
✓
String
1,752,947,328 Ops/sec
Number
1,706,178,176 Ops/sec
Symbol
15,052,273 Ops/sec
Tests:
Symbol
const a = Symbol(); const b = Symbol(); a === b
Number
const a = 1; const b = 2; a === b
String
const a = '1'; const b = '2'; a === b