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
<script src="https://raw.github.com/EchoAppsTeam/js-sdk/master/src/cookie.js">
</script>
<script src="https://raw.github.com/andris9/jStorage/master/jstorage.js">
</script>
<script src="https://raw.github.com/pamelafox/lscache/master/lscache.js">
</script>
var obj = {
"number": 123,
"line": "some string",
"array": [1,
{}, [], "str"],
"obj": {
"test": "foo"
}
};
localStorage['foo'] = JSON.stringify(obj);
Echo.Cookie.set('foo', JSON.stringify(obj));
$.jStorage.set('foo', obj);
lscache.set('bar', obj);
sessionStorage.setItem('foo', JSON.stringify(obj));
Ready to run.
Test | Ops/sec | |
---|---|---|
localstorage |
| ready |
cookie |
| ready |
jstorage.js |
| ready |
lscache.js |
| ready |
sessionStorage |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.