mustache.js

JavaScript performance comparison

Revision 2 of this test case created

Info

Tracking mustache.js performance.

Preparation code

<script src="https://raw.github.com/mjijackson/mustache.js/870f9492e4585936322271225c25e85a154bb6f4/mustache.js"></script>
<script>Mustache50 = Mustache;</script>
<script src="https://raw.github.com/mjijackson/mustache.js/master/mustache.js"></script>
<script>Mustache51 = Mustache;</script>

 
<script>
Benchmark.prototype.setup = function() {
    var template = "Hello {{name}}\nYou have just won ${{value}}!\n{{#in_ca}}\nWell, ${{ taxed_value }}, after taxes.\n{{/in_ca}}\n";
   
    var view = {
      name: "Chris",
      value: 10000,
      taxed_value: function() {
        return this.value - (this.value * 0.4);
      },
      in_ca: true
    };
};
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
mustache 0.5.0
Mustache50.render(template, view);
pending…
mustache 0.5.1
Mustache51.render(template, view);
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:

0 comments

Add a comment