This repo provides a framework for running benchmarks against multiple templating engines under Node.js. The following templating engine are compared:
Template | Syntax | Streaming | Asynchronous | Auto-escape |
---|---|---|---|---|
dustjs | Text | ✔ | ✔ | ✔ |
doT | Text | ✖ | ✖ | ✖ |
handlebars | Text | ✖ | ✖ | ✔ |
pug | Short-hand HTML | ✖ | ✖ | ✔ |
marko | HTML/Concise HTML | ✔ | ✔ | ✔ |
nunjucks | Text | ✖ | ✔ | ✖ |
swig | Text | ✖ | ✖ | ✔ |
old benchmark
This repo compares template engines in golang. It includes Ace, Amber, Mustache.go, Raymond, Pongo2, Jet, Soy.
JMH benchmark
forked above
Forked Above
forked from Java Template Benchmark
THe benchmark compares time taken for template engines implemented in C#. The template engines include - Fluid, Scriban, DotLiquid, Liquid.NET and Handlebars.NET repository. Fluid is faster and allocates less memory than these .NET Liquid implementation. Fluid is 19% faster than the second in parsing while Scriban allocates nearly 3 times less memory than second. In rendering, Fluid is 26% faster than the second while Handlebars is 5 times faster than Scriban.
Comparison Details for three PHP templates engines-Twig, Smarty and Fenom is done. The comparison templates invlve forEach, variable reference and template inheritance. Script file