Which is the faster and lower memmory way to use named keys in JS
Comparing performance of: Method 1A - Does tom Exist using indexOf vs Method 1B - Get State using indexOf vs Method 2 - Filter Object vs Method 2B - Filter Object for State
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
Method 1A - Does tom Exist using indexOf
Method 1B - Get State using indexOf
Method 2 - Filter Object
Method 2B - Filter Object for State
Fastest:N/A
Slowest:N/A
ⓘGet performance results from real users on your website with Request Metrics.
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one to run it!