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
Comparing the "slow loop" argument from http://www.sitepoint.com/google-closure-how-not-to-write-javascript/
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script>
< script type = "text/javascript" >
var AccordionLink = "<asp:Literal id='sAccordionLink' runat='server' />";
var status = "<asp:Literal id='sStatuLink' runat='server' />";
function ResolveUrl(url) {
if (url.indexOf("~/") == 0) {
url = baseUrl + url.substring(2);
}
return url;
}
Ektron.ready(function() {
if ("True" == status) {
$.ajax({
type: "POST",
cache: false,
async: false,
url: AccordionLink,
success: function(data) {
var st = $(data).filter('#EOR').html();
$("#devsite-method-description").html(st);
}
});
$('#devsite-method-description img').each(function() {
var imgSrc = $(this).attr('src');
imgSrc = imgSrc.replace("../../../", "developer/doc/Content/");
var baseUrl = "<%= ResolveUrl("~ / ") %>";
imgSrc = baseUrl + imgSrc;
$(this).attr('src', imgSrc);
});
}
}); < /script>
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
"Slow" loop |
| ready |
"Fast" loop |
| ready |
"Fastest" loop |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.