Cookies vs localStorage

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Cookies
var value = document.cookie;
ready
Local storage
var value = localStorage.getItem('foo');
ready

Revisions

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