# 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](https://github.com/gered/clj-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.0887 / 0.0010 8.5493 / 0.0921 188.9816 / 24.2857
Tinsel 0.1835 / 0.0010 12.1433 / 0.0712 238.9615 / 2.3069
Stencil (string) 18.2637 / 0.0944 71.9232 / 0.7373 527.0062 / 2.6310
Stencil (file) 0.6550 / 0.0021 23.4530 / 0.0961 478.5369 / 3.1301
mustache.clj 0.3373 / 0.0028 8.2423 / 0.1148 167.3133 / 0.7366
Hiccup 0.1632 / 0.0016 12.0269 / 0.1069 236.0784 / 0.5189
Hiccup (type-hinted) 0.1730 / 0.0013 12.9494 / 0.0837 252.9637 / 2.9224
Enlive 13.6911 / 0.1515 116.9049 / 1.2055 2130.2041 / 8.6054
Clabango (string) 210.0403 / 4.0629 819.6462 / 9.1964 9434.1045 / 102.2924
Clabango (file) 263.1698 / 2.6355 891.2824 / 11.2746 9562.9530 / 110.1058
Selmer (string) 22.7604 / 0.1545 105.2653 / 0.6792 1129.9113 / 7.6378
Selmer (file) 10.6799 / 0.1022 64.3357 / 0.1904 1075.8512 / 6.1394
clj-pebble (string) 2.7430 / 0.0150 24.3148 / 0.1917 436.8095 / 5.2781
clj-pebble (file) 2.7475 / 0.0231 24.4161 / 0.1602 440.0397 / 2.1993