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
These tests are meant to examine the benefits of removing user friendliness features in favor of performance. The test subject is $.removeAttr.
<script src="https://code.jquery.com/jquery-1.7.2.js"></script>
<script src="https://raw.github.com/johnbender/auto-jquery-optimization-paper/master/perf/removeattr/removeAttr.js"></script>
<script>
window.testElementCount = 10;
</script>
<script src="https://raw.github.com/johnbender/auto-jquery-optimization-paper/master/perf/removeattr/setup.js"></script>
// cache the test sets
window.testSet = $( "[data-test]" );
// add the attribute and data to be removed
window.testSet
.attr("foo", "bar")
.attr("bar", "bang")
.attr("baz", "bak");
Ready to run.
Test | Ops/sec | |
---|---|---|
friendly |
| ready |
unfriendly |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.