summaryrefslogtreecommitdiff
path: root/benchmark/erb_render.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/erb_render.rb')
-rw-r--r--benchmark/erb_render.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/benchmark/erb_render.rb b/benchmark/erb_render.rb
deleted file mode 100644
index 7dc0816..0000000
--- a/benchmark/erb_render.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-require 'erb'
-
-data = <<erb
-<html>
- <head> <%= title %> </head>
- <body>
- <h1> <%= title %> </h1>
- <p>
- <%= content %>
- </p>
- </body>
-</html>
-erb
-
-max = 1_500_000
-title = "hello world!"
-content = "hello world!\n" * 10
-
-src = "def self.render(title, content); #{ERB.new(data).src}; end"
-mod = Module.new
-mod.instance_eval(src, "(ERB)")
-
-max.times do
- mod.render(title, content)
-end