]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/hana/benchmark/including/compile.erb.json
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / hana / benchmark / including / compile.erb.json
index fe3b6a8f84e96401af5001a4fa869abdcbebe0ec..2441a4ee1ffda65bfe4746fad2dc2f912e22a722 100644 (file)
@@ -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