mustache.js
JavaScript performance comparison
Info
Tracking mustache.js performance.
Preparation code
<script src="https://raw.github.com/janl/mustache.js/0.4.2/mustache.js"></script>
<script>Mustache042 = Mustache;</script>
<script src="https://raw.github.com/janl/mustache.js/0.5.2/mustache.js"></script>
<script>Mustache052 = Mustache;</script>
<script src="https://raw.github.com/janl/mustache.js/0.6.0/mustache.js"></script>
<script>Mustache060 = Mustache;</script>
<script src="https://raw.github.com/janl/mustache.js/0.7.0/mustache.js"></script>
<script>Mustache070 = 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.
| Test | Ops/sec | |
|---|---|---|
v0.4.2 |
|
pending… |
v0.5.2 |
|
pending… |
v0.6.0 |
|
pending… |
v0.7.0 |
|
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 2: published
- Revision 4: published by Michael Jackson
- Revision 5: published
- Revision 6: published
- Revision 7: published
0 comments