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="//code.jquery.com/jquery-1.9.1.min.js">
</script>
<script>
jQ19 = jQuery.noConflict();
</script>
<script src="//code.jquery.com/jquery-2.0.3.min.js">
</script>
<script>
jQ20 = jQuery.noConflict();
</script>
<script src="//codeorigin.jquery.com/jquery-2.1.0-beta2.min.js">
</script>
<script>
jQ21 = jQuery.noConflict();
</script>
<div id="idSelector" style='display:none;'>
<div class="classSelector">
<div id="find">
<div id="cssGetter" style="color: black;">
<div id="cssSetter" style="color: black;">
<ul id="iteration">
<li>
<div id='editablearea'>
</div>
</li>
<li>
<p>
</li>
<li>
<input type="checkbox">
</li>
<li>
<h>
</h>
</li>
<li>
<table>
<thead>
</thead>
<tbody>
</tbody>
</table>
</li>
<li>
<textarea>
</textarea>
</li>
<li>
<span>
</span>
</li>
</ul>
</div>
</div>
<div>
</div>
</div>
</div>
</div>
function testcase(_$) {
var ti = _$("#iteration").clone().html();
_$("#iteration li").each(function(i, e) {
_$("#idSelector").find("table").append('<tr></tr>')
});
_$("#idSelector").find('table').empty();
_$(".classSelector").toggleClass('test').data('ts', '3').attr('test', 'test');
_$('#idSelector input').is(':checked');
_$('#idSelector :checkbox').is(':visible');
_$('#idSelector [type="checkbox"]').change();
_$("#editablearea").text(ti).html(ti).empty();
_$("#cssGetter").css("color");
_$("#cssSetter").css("color", "green").css("color", "red");
_$("#idSelector #iteration li").closest('ul');
_$("#idSelector #iteration li").filter(":first").next().end();
_$("#idSelector #iteration li").filter(":last").prev().parent();
};
Ready to run.
Test | Ops/sec | |
---|---|---|
1.9.1 |
| ready |
2.0.0 release |
| ready |
2.1.0 beta 2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.