From 929982ecea67dc60d4e555f8bacc72dd291b917b Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 8 Jul 2018 17:36:26 +0000 Subject: benchmark/*.yml: convert from benchmark/bm_*.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- benchmark/app_erb.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 benchmark/app_erb.yml (limited to 'benchmark/app_erb.yml') diff --git a/benchmark/app_erb.yml b/benchmark/app_erb.yml new file mode 100644 index 0000000000..df0630585f --- /dev/null +++ b/benchmark/app_erb.yml @@ -0,0 +1,28 @@ +benchmark: + app_erb: | + # + # Create many HTML strings with ERB. + # + + require 'erb' + + data = < + <%= title %> + +

<%= title %>

+

+ <%= content %> +

+ + + erb + + max = 15_000 + title = "hello world!" + content = "hello world!\n" * 10 + + max.times{ + ERB.new(data).result(binding) + } +loop_count: 1 -- cgit v1.2.3