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
Tests the difference between reading from localStorage as compared to reading data from an object.
<script>
data = [{"id":1,"title":"Default","siteList":"","url_protocol":false,"url_subdomain":false,"url_domain":true,"url_path":false,"strUseText":"","hashAlgorithm":"md5","username":"","modifier":"","passwordLength":"8","selectedCharset":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_-+={}|[]\\:\";'<>?,./","passwordPrefix":"","passwordSuffix":"","whereToUseL33t":"off","l33tLevel":"0"},{"id":2,"title":"Alphanumeric","siteList":"","url_protocol":false,"url_subdomain":false,"url_domain":true,"url_path":false,"strUseText":"","hashAlgorithm":"md5","username":"","modifier":"","passwordLength":8,"selectedCharset":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789","passwordPrefix":"","passwordSuffix":"","whereToUseL33t":"off","l33tLevel":0}];
localStorage.setItem("foo", data);
var FOO = {
foo: data
};
var value;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Reading from an object |
| ready |
Reading from localStorage |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.