Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Local storage vs memory
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Browser:
Firefox 132
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Local Storage
343808.5 Ops/sec
In Memory
603212.2 Ops/sec
Script Preparation code:
window.localStorage.setItem("data", '{"attributes.support_case_state":{"type":"string_or_null_array","value":["open"]},"attributes.tier":{"type":"string_or_null_array","value":["tier_1"]},"attributes.user_persona":{"type":"string_or_null_array","value":["rider"]},"attributes.country_code":{"type":"string_or_null_array","value":["az"]},"attributes.city_id":{"type":"number_or_null_array","value":[211]},"attributes.safety_severity_level":{"type":"string_or_null_array","value":["minor"]}}'); var memoryData = JSON.parse('{"attributes.support_case_state":{"type":"string_or_null_array","value":["open"]},"attributes.tier":{"type":"string_or_null_array","value":["tier_1"]},"attributes.user_persona":{"type":"string_or_null_array","value":["rider"]},"attributes.country_code":{"type":"string_or_null_array","value":["az"]},"attributes.city_id":{"type":"number_or_null_array","value":[211]},"attributes.safety_severity_level":{"type":"string_or_null_array","value":["minor"]}}');
Tests:
Local Storage
Object.fromEntries(Object.entries(JSON.parse(window.localStorage.getItem("data"))).map((key, value) => [key, value]));
In Memory
Object.fromEntries(Object.entries(memoryData).map((key, value) => [key, value]));