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
<div id="memberProfile"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://github.com/nje/jquery-tmpl/raw/master/jquery.tmpl.js"></script>
<script type="text/html" id="tmplUser">
<h1>${firstName} ${lastName}</h1>
{{if premium}}
<b>Premium User!</b>
{{/if}}
<h2>Order History</h2>
<div class="orders">
{{each orders}}
${$value.number}
${$value.title}
{{if premium}}
<a href="premiumReturn.html">Return free</a>
{{else}}
<a href="return.html">Return (you pay shipping)</a>
{{/if}}
<br/>
{{/each}}
</div>
</script>
<script>
var data = {
firstName: "Jane",
lastName: "Doe",
premium: true,
userID: 9999000,
orders: [{
number: 321,
title: "Mule Variations"
},
{
number: 543,
title: "Library Nation"
}]
};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
use the template |
| ready |
build a string |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.