concat-vs-frag-redux
JavaScript performance comparison
Preparation code
<div id="insert-into"></div>
<script>
Benchmark.prototype.setup = function() {
var html;
var obj = {
header: 'header test',
body: 'body text lorem ipsum'
};
insert = document.getElementById('insert-into');
};
Benchmark.prototype.teardown = function() {
html = '';
insert.innerHTML = '';
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
concat |
|
pending… |
frag |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments