We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f41575 commit bcd7946Copy full SHA for bcd7946
benchmark/including/compile.erb.json
@@ -1,9 +1,9 @@
1
<%
2
- def avg(xs)
+ def self.avg(xs)
3
xs.inject(0, :+) / xs.length
4
end
5
6
- def amortize(file)
+ def self.amortize(file)
7
# We remove the first one to mitigate cache effects
8
times = time_compilation(file, 6.times)
9
times.shift
0 commit comments