Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
string/number/symbol speed test
(version: 1)
Comparing performance of:
Symbol vs Number vs String
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
Symbol
const a = Symbol('asdf'); const b = Symbol('qwer'); a === b
Number
const a = 1; const b = 2; a === b
String
const a = '1'; const b = '2'; a === b
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Symbol
Number
String
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
12 days ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 Edg/147.0.0.0
Browser/OS:
Chrome 147 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Symbol
26633842.0 Ops/sec
Number
153008336.0 Ops/sec
String
145242032.0 Ops/sec
Related benchmarks:
if else check
Const test
string vs number vs symbol
=1vman
func vs object vs symbol
string vs number vs symbol 2
benchmarking redference check
Function vs () =>
sdjfkpweiufjq
Comments
Confirm delete:
Do you really want to delete benchmark?