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
Adding in the new is method (is2() ) from ticket 2773.
<script src="https://dump.jruitenschild.nl/jquery-1.4.4-fasternextUntil-2.js"></script>
<div id="testCase">
<dl>
<dt id="term-1">term 1</dt>
<dd>definition 1-a</dd>
<dd>definition 1-b</dd>
<dd>definition 1-c</dd>
<dd>definition 1-d</dd>
<dd>definition 1-e</dd>
<dt id="term-2">term 2</dt>
<dd>definition 2-a</dd>
<dd>definition 2-b</dd>
<dd>definition 2-c</dd>
<dd>definition 2-d</dd>
<dd>definition 2-e</dd>
<dt id="term-3">term 3</dt>
<dd>definition 3-a</dd>
<dd>definition 3-b</dd>
<dd>definition 3-c</dd>
<dd>definition 3-d</dd>
<dd>definition 3-e</dd>
</dl>
</div>
<script>
main = $('#testCase');
term2 = main.find('#term-2');
term3 = main.find('#term-3');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
standard nextUntil |
| ready |
Uses matchesSelector |
| ready |
Uses filter instead of .is() accepts selector |
| ready |
Uses filter instead of .is() accepts DOM node |
| ready |
Uses filter instead of .is() accepts jQuery object |
| ready |
Accepts DOM nodes only |
| ready |
First checks on DOM node then uses matchesSelector and then filter |
| ready |
First checks on DOM node then uses matchesSelector and then filter |
| ready |
First checks on DOM node then uses matchesSelector and then filter |
| ready |
new is() method |
| ready |
new is() method |
| ready |
new is() method |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.