bench.rb in phlex-0.4.0 vs bench.rb in phlex-0.5.0
- old
+ new
@@ -7,8 +7,15 @@
require_relative "fixtures/page"
require_relative "fixtures/layout"
puts RUBY_DESCRIPTION
+a = Example::Page.new.call
+# Example::Page.compile
+# Example::LayoutComponent.compile
+b = Example::Page.new.call
+
+raise unless a == b
+
Benchmark.ips do |x|
x.report("Page") { Example::Page.new.call }
end