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
getElementsByTagName('script') vs document.scripts
<html>
<head>
<script>var a,b,c; function bla(e){console.log(e)} bla('foo');</script>
<script src='lib0.js'></script>
<script src='lib2.js'></script>
<script src='lib3.js'></script>
</head>
<body>
<script src='lib4.js'></script>
<script src='lib5.js'></script>
<script src='lib6.js'></script>
<script src='lib7.js'></script>
<script src='lib8.js'></script>
<script src='lib9.js'></script>
</body>
</html>
Ready to run.
Test | Ops/sec | |
---|---|---|
getElementsByTagName |
| ready |
document.scripts |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.