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:
one month ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Browser/OS:
Chrome 148 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Local Storage
8644218.0 Ops/sec
Session Storage
8957330.0 Ops/sec
In-Memory
271750496.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?