Skip to content

Commit 75cd7ca

Browse files
committed
Update bench.rb
1 parent b4df6ef commit 75cd7ca

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

bench.rb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
require_relative "fixtures/page"
88
require_relative "fixtures/layout"
99

10-
puts RUBY_DESCRIPTION
10+
RubyVM::YJIT.enable
1111

12-
a = Example::Page.new.call
13-
# Example::Page.compile
14-
# Example::LayoutComponent.compile
15-
b = Example::Page.new.call
16-
17-
raise unless a == b
12+
sample = Example::Page.new.call
13+
puts sample.bytesize
1814

1915
Benchmark.ips do |x|
16+
x.time = 20
2017
x.report("Page") { Example::Page.new.call }
2118
end

0 commit comments

Comments
 (0)