Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (74 sloc) 2.61 KB
<html lang="en">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>JS Template Benchmarks: jQote</title>
<link rel="stylesheet" href="styles.css" type="text/css" media="screen" charset="utf-8" />
<script src="" type="text/javascript"></script>
<script src="jquery.benchmark.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.jqote.js" type="text/javascript" charset="utf-8"></script>
<div id="report">
<h1>JS Template Benchmarks: jQote</h1>
<div id="results">
<li>Simple Test: <span class="stat" id="simple_test"></span></li>
<li>Loop Test: <span class="stat" id="loop_test"></span></li>
<div id="output"></div>
<script type="text/x-jqote-template" id="info-tmpl">
<div class="test">
<h2>This is a test of <%= %></h2>
<p>The homepage is <a href="<%= this.url %>"><%= this.url %></a>.</p>
<p>The sources is: <%= this.source %></p>
<script type="text/x-jqote-template" id="comment-tmpl">
<div class="comments">
<h3><%= this.header %></h3>
<% $.each(this.comments, function(i, comment){ %>
<li class="comment">
<h5><%= %></h5>
<p><%= comment.body %></p>
<% }); %>
<script type="text/javascript">
var output = $('#output');
$.benchmarks = {};
$.benchmarks.test_simple = function(){
name: 'jQote',
url: '',
source: ''
$.benchmarks.loop_test = function(){
var data = {
header: "My Post Comments",
comments: [
{name: "Joe", body: "Thanks for this post!"},
{name: "Sam", body: "Thanks for this post!"},
{name: "Heather", body: "Thanks for this post!"},
{name: "Kathy", body: "Thanks for this post!"},
{name: "George", body: "Thanks for this post!"}
// use these lines to run the benchmark tests in your browsers JS console
// $.benchmark(1000, '#simple_test', $.benchmarks.test_simple);
// $.benchmark(1000, '#loop_test', $.benchmarks.loop_test);
Something went wrong with that request. Please try again.