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>
<ul id="list">
<li><a href="#">text 1</a></li>
<li><a href="#">text 2</a></li>
<li><a href="#">text 3</a></li>
<li><a href="#">text 4</a></li>
<li><a href="#">text 5</a></li>
<li><a href="#">text 6</a></li>
<li><a href="#">text 7</a></li>
<li><a href="#">text 8</a></li>
<li><a href="#">text 9</a></li>
<li><a href="#">text 10</a></li>
<li><a href="#">text 11</a></li>
<li><a href="#">text 12</a></li>
<li><a href="#">text 13</a></li>
<li><a href="#">text 14</a></li>
<li><a href="#">text 15</a></li>
</ul>
<script>
$.expr[':'].textEquals = $.expr.createPseudo(function(arg) {
return function( elem ) {
return $(elem).text().match("^" + arg + "$");
};
});
</script>
var $A = $('#list').find('a'),
filter = "text 1";
Ready to run.
Test | Ops/sec | |
---|---|---|
:contains+.filter |
| ready |
only .filter |
| ready |
custom selector |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.