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
Checking performance of the tmpl plugin when outputting as a string rather than a DOM object
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js">
</script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
<script id="personTmpl" type="text/x-jquery-tmpl">
<li><span>${name}</span><span>${jobTitle}</span></li>
</script>
var somedata = [
{ name: "PersonA", jobTitle:"JobTitleA" },
{ name: "PersonB", jobTitle:"JobTitleB" }
];
var tmplFn = $( "#personTmpl" ).template();
Ready to run.
Test | Ops/sec | |
---|---|---|
tmpl as string |
| ready |
tmpl as DOM |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.