# clojure-template-benchmarks Template engines being compared are: * Clojure `str` function * [Tinsel](https://github.com/davidsantiago/tinsel) * [Stencil](https://github.com/davidsantiago/stencil) * [mustache.clj](https://github.com/shenfeng/mustache.clj) * [Hiccup](https://github.com/weavejester/hiccup) * [Enlive](https://github.com/cgrand/enlive) * [Clabango](https://github.com/danlarkin/clabango) * [Selmer](https://github.com/yogthos/Selmer) * clj-pebble _(soon-to-be-released Clojure wrapper library around [Pebble](https://github.com/mbosecke/pebble))_ ## Data Times shown are in microseconds (µs) in the format "mean time / standard deviation."
Template Engine Simple Data Injection Small List (50 items) Big List (1000 items)
str 0.0897 / 0.0009 8.4822 / 0.1109 167.5538 / 1.5672
Tinsel 0.1832 / 0.0007 12.0418 / 0.1884 236.5161 / 1.3767
Stencil (string) 19.0593 / 0.1757 71.6874 / 0.5020 526.9889 / 7.2122
Stencil (file) 0.6663 / 0.0033 23.4976 / 0.1265 476.8262 / 2.1910
mustache.clj (file) 0.3394 / 0.0039 8.1361 / 0.0839 165.4727 / 1.2440
Hiccup 0.1598 / 0.0010 12.1548 / 0.0950 237.7211 / 1.0018
Hiccup (type-hinted) 0.1731 / 0.0010 12.8421 / 0.1939 247.7344 / 1.2166
Enlive 13.3319 / 0.0650 116.5084 / 0.9408 2141.3317 / 7.9543
Clabango (string) 207.5223 / 3.6133 844.5899 / 12.0383 9822.2863 / 40.4448
Clabango (file) 263.1341 / 5.0118 907.2633 / 14.9110 9996.2817 / 57.1756
Selmer (string) 22.8039 / 0.0753 107.4600 / 1.3940 1138.7408 / 10.4449
Selmer (file) 10.7812 / 0.0694 65.6449 / 0.5891 1108.8427 / 8.1423
clj-pebble (string) 4.9072 / 0.0668 26.7018 / 0.2296 442.8252 / 1.9989
clj-pebble (file) 4.8032 / 0.0368 26.8360 / 0.4538 446.6798 / 2.2262