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="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://tryhandlebarsjs.com/js/libs/handlebars-1.0.0.beta.6.js"></script>
<script type="text/tpl" id="enrollment-tpl">
<li class="user" data-id="{{id}}">{{name}}</li>
</script>
<ul id="user-list"></ul>
var enrollments = [];
var tplSource = $('#enrollment-tpl').html();
var tpl = Handlebars.compile(tplSource);
var list = $('#user-list');
for (var i=0; i<500; i++) {
enrollments.push($(tpl({id: i, name: 'Enrollment' + i})));
};
Ready to run.
Test | Ops/sec | |
---|---|---|
document fragment |
| ready |
string |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.