jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Testing DataStorage.js performance increases for repeatedly accessing Objects in localStorage.
<script src="https://raw.github.com/marcneuwirth/datastorage.js/master/dataStorage.js"></script>
localStorage = localStorage || {};
var storageArray = {};
//from http://json.org/example.html
var med = {
"web-app": {}
};
storageArray['med'] = med;
localStorage['med'] = JSON.stringify(med);
Ready to run.
Test | Ops/sec | |
---|---|---|
Small: JSON Parse |
| ready |
Small: No Parse Lookup |
| ready |
Small: DataStorage |
| ready |
Med: JSON Parse |
| ready |
Med: No Parse Lookup |
| ready |
Med: DataStorage |
| ready |
Large: JSON Parse |
| ready |
Large: No Parse Lookup |
| ready |
Large: DataStorage |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.