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://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://documentcloud.github.com/underscore/underscore.js"></script>
<div id="output"></div>
var $ = window.jQuery,
_ = window._,
arr = {"test" : 123, "best" : 123, "rest" : 123 },
arr2 = {"test" : 1234, "best" : 1234, "rest" : 1234 },
obj = {0 : arr, 1 : arr2},
i,j,
len = Object.keys(obj).length,
outputDiv = document.getElementById("output");
Ready to run.
Test | Ops/sec | |
---|---|---|
Current Implementation |
| ready |
for loop |
| ready |
for in loop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.