Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
mustache@4.0.1 vs handlebars@4.7.6
(version: 0)
Comparing performance of:
Handlebars vs Mustache
Created:
5 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://s3.amazonaws.com/builds.handlebarsjs.com/handlebars.min-v4.7.6.js"></script> <script src="https://unpkg.com/mustache@4.0.1/mustache.min.js"></script>
Script Preparation code:
var template = "<strong>This is a slightly more complicated {{thing}}.</strong>.\n{{! Just ignore this business. }}\nCheck this out:\n{{#hasThings}}\n<ul>\n{{#things}}\n<li class={{className}}>{{word}}</li>\n{{/things}}</ul>.\n{{/hasThings}}\n{{^hasThings}}\n\n<small>Nothing to check out...</small>\n{{/hasThings}}"; var context = { thing: function() { return "blah"; }, things: [ {"className": "one", word: "@fat"}, {"className": "two", word: "@dhg"}, {"className": "three", word:"@sayrer"} ], hasThings: true }; var handlebarsRenderer = Handlebars.compile(template); Mustache.parse(template);
Tests:
Handlebars
handlebarsRenderer(context);
Mustache
Mustache.render(template, context);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Handlebars
Mustache
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0
Browser/OS:
Firefox 137 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Handlebars
215066.0 Ops/sec
Mustache
540720.4 Ops/sec
Related benchmarks:
mustache rendering performance-fix
mustache@4.0.1 vs handlebars@4.7.7 vs mote - big dataset
mustache vs handlebars rendering performance
mustache@4.2.0 vs handlebars@4.7.8
Comments
Confirm delete:
Do you really want to delete benchmark?