jQuery Raw HTML Performance
JavaScript performance comparison
Info
Testing 1000 rows x 10 columns.
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<table id="target"></table>
<script>
var data = [];
for (var i = 0; i < 1000; i++) {
var s = '<tr>';
s += '<td>' + i + '</td>';
s += '<td>foo</td>';
s += '<td>50</td>';
s += '<td>255</td>';
s += '<td>http://abc.xyz.com</td>';
s += '<td>bar</td>';
s += '<td>baz</td>';
s += '<td>30</td>';
s += '<td>john</td>';
s += '<td>doe</td>';
s += '</tr>';
data.push(s);
}
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
jQuery Building Raw HTML |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by Dave Ward
- Revision 4: published
- Revision 5: published
- Revision 6: published
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published
- Revision 11: published
- Revision 12: published by tom
- Revision 13: published
- Revision 14: published by Sridhar
- Revision 15: published
0 comments