localStorage vs sessionStorage (v3)

Revision 3 of this benchmark created by Pallavi on


Description

Read/Write

Setup

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

Test runner

Ready to run.

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

Revisions

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