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
Checking perf for basic selectors. Each revision will contain different tests.
<script src="https://github.com/dperini/nwmatcher/raw/master/src/nwmatcher.js"></script>
<script src="https://github.com/jquery/sizzle/raw/master/sizzle.js"></script>
<script src="https://github.com/ded/qwery/raw/master/qwery.js"></script>
<div foo="bar"></div>
<div class="a"></div>
<div id="boosh">
<div class="a b">
<div class="d e" test="fg" id="booshTest"></div>
<em test="f g"></em>
<span class="h i a"></span>
</div>
</div>
<div id="attr-test1"></div>
<div id="attr-test2"></div>
<div id="attr-test3" class="found you" title="whatup duders"></div>
Benchmark.count = 0;
Benchmark.prototype.setup = function() {
var N = NW.Dom.select,
Q = qwery,
S = Sizzle,
c = 0,
id = "attr-test3" + (Benchmark.count += this.count),
el = document.getElementById('attr-test3');
};
el.id = 'attr-test3';
Ready to run.
Test | Ops/sec | |
---|---|---|
Qwery Complex |
| ready |
Sizzle Complex |
| ready |
NWMatcher Complex |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.