jQuery Templates 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>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
<script type="x-jquery-tmpl" id="bigRowTemplate">
<tr>
<td>${id}</td>
<td>${foo}</td>
<td>${fifty}</td>
<td>${two50five}</td>
<td>${website}</td>
<td>${bar}</td>
<td>${baz}</td>
<td>${thirty}</td>
<td>${firstName}</td>
<td>${lastName}</td>
</tr>
</script>
<table id="target"></table>
<script>
var data = [];
for (var i = 0; i < 1000; i++) {
var row = {
id: i,
foo: 'foo',
fifty: 50,
two50five: 255,
website: 'http://abc.xyz.com',
bar: 'bar',
baz: 'baz',
thirty: 30,
firstName: 'john',
lastName: 'doe'
};
data.push(row);
}
</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 Templates |
|
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