Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
func vs object vs symbol
(version: 0)
Comparing performance of:
func(diff) vs func(eq) vs obj(diff) vs obj(eq) vs symbol(diff) vs symbol(eq)
Created:
3 years ago
by:
Registered User
Jump to the latest result
Tests:
func(diff)
const a = function () { }; const b = function () { }; a === b;
func(eq)
const a = function () { }; const b = a; a === b;
obj(diff)
const a = {}; const b = {}; a === b;
obj(eq)
const a = {}; const b = a; a === b;
symbol(diff)
const a = Symbol("foo"); const b = Symbol("bar"); a === b;
symbol(eq)
const a = Symbol("foo"); const b = a; a === b;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (6)
Previous results
Fork
Test case name
Result
func(diff)
func(eq)
obj(diff)
obj(eq)
symbol(diff)
symbol(eq)
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Discriminated Union vs InstanceOf
class vs function constructor vs object literal vs __proto__ vs Object.create vs Object.setPrototypeOf
Object creation: arrow function vs. class with methods
Comparison of classes vs prototypes vs object literals also including the inheritance
"this" property vs. closure upvalue
Comments
Confirm delete:
Do you really want to delete benchmark?