From 1e8c510d47ce1cb8630e7a60685e7112d2d47c91 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Fri, 13 Dec 2013 13:42:27 +0700 Subject: [PATCH] Added readme --- README.md | 28 ++++++++++++++++++++++++++++ compare.rb => benchmark.rb | 0 2 files changed, 28 insertions(+) create mode 100644 README.md rename compare.rb => benchmark.rb (100%) diff --git a/README.md b/README.md new file mode 100644 index 0000000..a762ad1 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# Template Engine Comparison + +## Running +``` +git clone git@github.com:localhots/template_engine_comparison.git +cd template_engine_comparison +bundle install +./benchmark.rb +``` + +## Current Results +``` +############################################################ +## Compilation (1000 runs) ## +############################################################ + user system total real +erb 0.230000 0.020000 0.250000 ( 0.247248) +erubis 0.050000 0.010000 0.060000 ( 0.061928) +haml 0.880000 0.050000 0.930000 ( 0.935885) + +############################################################ +## Render (10000 runs) ## +############################################################ + user system total real +erb 0.140000 0.000000 0.140000 ( 0.136514) +erubis 0.080000 0.000000 0.080000 ( 0.085103) +haml 0.250000 0.020000 0.270000 ( 0.263665) +``` diff --git a/compare.rb b/benchmark.rb similarity index 100% rename from compare.rb rename to benchmark.rb