Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
In-Memory vs LocalStorage vs SessionStorage
(version: 1)
Comparing performance of:
Local Storage vs Session Storage vs In-Memory
Created:
one year ago
by:
Registered User
Jump to the latest result
Script Preparation code:
localStorage.setItem('foo', 'bar') sessionStorage.setItem('foo', 'bar') var foo = 'bar';
Tests:
Local Storage
var FOO = localStorage.getItem('foo');
Session Storage
var FOO = sessionStorage.getItem('foo');
In-Memory
var test = foo
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Local Storage
Session Storage
In-Memory
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Mobile Safari/537.36
Browser/OS:
Chrome Mobile 142 on Android
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Local Storage
1036288.2 Ops/sec
Session Storage
1044161.4 Ops/sec
In-Memory
27712098.0 Ops/sec
Related benchmarks:
localStorage and sessionStorage Speedtest
localStorage vs sessionStorage vs Reading a Hardcoded Array Speedtest
localStorage vs Reading a Hardcoded Array Speedtest
Just localStorage vs sessionStorage Speedtest
Memory vs Local vs Session
localStorage and sessionStorage Speedtest2
2nd localStorage and sessionStorage Speedtest
In-memory, localStorage and sessionStorage Speedtest
aaaabbb
Comments
Confirm delete:
Do you really want to delete benchmark?