Skip to content

Commit

Permalink
[benchmarks] Fix issue with Tilt 2.0.10
Browse files Browse the repository at this point in the history
See rtomayko/tilt#347 for details.
  • Loading branch information
ldionne committed Sep 24, 2019
1 parent 1f41575 commit bcd7946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/including/compile.erb.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%
def avg(xs)
def self.avg(xs)
xs.inject(0, :+) / xs.length
end

def amortize(file)
def self.amortize(file)
# We remove the first one to mitigate cache effects
times = time_compilation(file, 6.times)
times.shift
Expand Down

0 comments on commit bcd7946

Please sign in to comment.