Skip to content

Instantly share code, notes, and snippets.

@zcorpan
Created December 7, 2015 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zcorpan/b5530d995b20d1c4687b to your computer and use it in GitHub Desktop.
Save zcorpan/b5530d995b20d1c4687b to your computer and use it in GitHub Desktop.
<!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