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
how long it takes using different techniques to draw elements in the browser using prototype
<div id="container"></div>
<script src="//ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
<script>
var data = {
name: 'someone something',
date: '02/05/2010',
title: 'blah blah blah blah',
content: 'some really really long boring content that no one cares to read.'
}
var template = new Template('<div><span>#{name}</span><span>#{date}</span><div>#{title}</div><div>#{content}</div></div>');
var container = $('container');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
template and insert |
| ready |
insert no template |
| ready |
store in var and update all at once |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.