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://raw.github.com/kotas/jarty/master/src/jarty.js"></script>
<script src="https://raw.github.com/janl/mustache.js/master/mustache.js"></script>
<script src="http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.4.js"></script>
<script type="text/javascript">
var jar = '{foreach from=$items item=item}<div>{$item|escape}</div>{/foreach}';
var mus = '{{#items}}<div>{{.}}</div>{{/items}}';
var data = {items:['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']};
var comp = Handlebars.compile(mus);
var jcomp = Jarty.compile(jar);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Jarty |
| ready |
Mustache |
| ready |
Handlebars |
| ready |
Handlebars(Compiled) |
| ready |
Jarty(Compiled) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.