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
More complicated mustache
<script src="https://github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js">
</script>
<script src="http://twitter.github.com/hogan.js/builds/1.0.3/hogan.js">
</script>
<script src="http://github.com/janl/mustache.js/raw/master/mustache.js">
</script>
var template = "hello {{name}}";
var context = {"name":"lee"};
var handlebarsRenderer = Handlebars.compile(template);
var hoganRenderer = Hogan.compile(template);
var mustacheRenderer = Mustache.compile(template);
var mustacheContext = new Mustache.Context.make(context);
Ready to run.
Test | Ops/sec | |
---|---|---|
Handlebars |
| ready |
Hogan |
| ready |
Mustache |
| ready |
Mustache render |
| ready |
Mustache compile |
| ready |
mustache context |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.