From 9be02249b03b1038b45df91eda867cc121c0e387 Mon Sep 17 00:00:00 2001 From: Chris Allen Date: Wed, 30 Jan 2013 00:25:12 -0800 Subject: [PATCH] more representative tinsel results --- README.md | 2 +- src/clojure_template_benchmarks/core.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b5b173..47210f0 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Units are in microseconds (us) tinsel - 0.0052 us / 0.00017 us + 23.7 us / 5.5 us 1,100 us / 52 us 22,000 us / 770 us diff --git a/src/clojure_template_benchmarks/core.clj b/src/clojure_template_benchmarks/core.clj index b807d3c..3ca92d1 100644 --- a/src/clojure_template_benchmarks/core.clj +++ b/src/clojure_template_benchmarks/core.clj @@ -56,7 +56,7 @@ (stencil/render-file "clojure_template_benchmarks/templates/list.mustache" {:items (range 1 ceil)})) -(deftemplate simple-tinsel [[:span {:class "foo"}]] [] (has-class? "foo") (set-content "bar")) +(deftemplate simple-tinsel [[:span {:class "foo"}]] [] (has-class? "foo") (set-content bar)) (deftemplate list-tinsel [[:ul]] [ceil] (tag= :ul) (set-content (for [x (range 1 ceil)] [:li x]))) (defn -main [& args]