Perf tests - addyosmani/basket.js GitHub Wiki
Compiled a list with some existing localStorage jsPerf tests we can use as inspiration
-
localStorage key size diff http://jsperf.com/localstorage-read-write-test/3
-
localStorage vs direct object access http://jsperf.com/localstorage-vs-objects/16
-
localStorage vs IndexedDB http://jsperf.com/indexeddb-vs-localstorage/2
-
localStorage getItem / setItem vs getter / setter http://jsperf.com/localstorage-getitem-setitem-vs-getter-setter
-
Reading localStorage ( index / getItem ) http://jsperf.com/localstorage-science
Notices
LocalStorage in Safari 5 is about 240x faster than in Chrome 17. It seems like they're doing something right. Anyone why that is?
It's exponentially slower to access big data.
IndexedDB is way slower than localStorage. Though the jsPerf might be biased. We should create our own to confirm.
###Related https://plus.google.com/117281036949330216542/posts/PM51anxWXSA