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
Test case which measures the speed difference between the default asynchronous Google Analytics snippet and the optimized version.
Note that I commented out the s.parentNode.insertBefore(g, s); line in both scripts, since otherwise the <script> element gets inserted a few thousand times every time you run the tests. Since this code is the same in both scripts, it shouldn’t have an influence on the results.
<script id="gaq">
</script>Ready to run.
| Test | Ops/sec | |
|---|---|---|
| Default snippet | | ready |
| Optimized snippet | | ready |
| More optimized snippet (t32k) | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.