Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
sdjfkpweiufjq
(version: 1)
Comparing performance of:
number vs symbol vs string
Created:
one year ago
by:
Guest
Go to the latest result
Tests:
number
const a = 1; const b = 2; const c = 3; a === b || a == c
symbol
const a = Symbol(); const b = Symbol(); const c = Symbol(); a === b || a === c
string
const a = 'aboba'; const b = 'speed'; const c = 'necrodancer'; a === b || a === c
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
number
symbol
string
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser/OS:
Chrome 130 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
number
136.7M/s
string
122.1M/s
symbol
4.1M/s
View exact numbers
Test name
Executions per second
✓
number
136,671,152 Ops/sec
string
122,134,104 Ops/sec
symbol
4,084,864 Ops/sec
Related benchmarks
string vs number vs symbol
string vs number vs symbol 2
Function vs () =>
Comments
Confirm delete:
Do you really want to delete benchmark?