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="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//goo.gl/OCK7V"></script>
<script src="https://raw.github.com/janl/mustache.js/master/mustache.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>var movies = {
movies: [
{ Name: "The Red Violin", ReleaseYear: "1998" },
{ Name: "Eyes Wide Shut", ReleaseYear: "1999" },
{ Name: "The Inheritance", ReleaseYear: "1976" }
]
};
var jQueryTemplate = "<li><b>${Name}</b> (${ReleaseYear})</li>";
$.template( "jQueryMovieTemplate", jQueryTemplate );
var mustacheTemplate = "{{#movies}}<li><b>{{Name}}</b> ({{ReleaseYear}})</li>{{/movies}}";
var hoganTemplate = Hogan.compile(mustacheTemplate);Ready to run.
| Test | Ops/sec | |
|---|---|---|
| jQuery Templates uncompiled | | ready |
| jQuery Templates compiled | | ready |
| Mustache Template | | ready |
| Hogan Template | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.