localStorage vs sessionStorage (v4)

Revision 4 of this benchmark created by Pallavi on


Description

Read/Write

Setup

localStorage.setItem('abc', 123);
    sessionStorage.setItem('abc', 123);

Test runner

Ready to run.

Testing in
TestOps/sec
localStorage read/write
localStorage.getItem('abc');
ready
sessionStorage read/write
sessionStorage.getItem('abc');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.