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
<table id="mytable" style="display:none">
<tbody>
</tbody>
</table>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.2.1/handlebars.min.js"></script>
var $body = $('#mytable tbody');
var text = '{{#each cols}}<tr id="{{id}}"><td>{{col0}}</td><td>{{col1}}</td><td>{{col2}}</td><td class="progress">{{col3}}</td><td>{{col4}}</td><td>{{col5}}</td></tr>{{/each}}';
var tmpl = Handlebars.compile(text);
$body.empty();
var cols = [];
for (var i = 0; i < 100; i++) {
cols.push({
id: 'row-' + i,
col0: Math.random(),
col1: Math.random(),
col2: Math.random(),
col3: Math.random(),
col4: Math.random(),
col5: Math.random()
});
}
$body[0].innerHTML = tmpl({
cols: cols
});
Ready to run.
Test | Ops/sec | |
---|---|---|
Handlebars |
| ready |
modify dom |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.