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
Jump 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
Test name
Executions per second
number
136671152.0 Ops/sec
symbol
4084864.5 Ops/sec
string
122134104.0 Ops/sec
Related benchmarks:
asdfasdffdas
Const test
string vs number vs symbol
=1vman
!!a && b or a && b
func vs object vs symbol
if condition speed test 3
string vs number vs symbol 2
Function vs () =>
Comments
Confirm delete:
Do you really want to delete benchmark?