Created
December 7, 2015 13:42
-
-
Save zcorpan/b5530d995b20d1c4687b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<script src=bliss.js></script> | |
<script> | |
onload = function() { | |
var start = performance.now(); | |
var rows = []; | |
for (var i = 0; i <= 50000; ++i) { | |
rows.push($.create({ | |
tag: 'tr', | |
contents: [ | |
{ | |
tag: 'td', | |
textContent: i | |
}, | |
{ | |
tag: 'td', | |
textContent: 'Hello world' | |
} | |
] | |
})); | |
} | |
var table = $.create({ | |
tag: 'table', | |
hidden: true, | |
contents: { | |
tag: 'tbody', | |
contents: rows | |
} | |
}); | |
document.body.appendChild(table); | |
document.body.appendChild($.create(String(Math.round(performance.now() - start)))); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment