You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: benchmark_helper.rb
    path of file: ./repos/oga/benchmark
    
    the code of the file until where you have to start completion: require 'bundler/setup'
require 'stringio'
require 'benchmark'
require 'benchmark/ips'
require 'oga'

# @return [File]
def big_xml_file

    
def measure_average(amount = 10, precision = 3)
  timings = []

  amount.times do |iter|
    timing = Benchmark.measure { yield }.real

    timings << timing.real

    puts "Iteration: #{iter + 1}: #{timing.real.round(precision)}"
  end

  average = timings.inject(:+) / timings.length

  puts
  puts "Iterations: #{amount}"
  puts "Average:    #{average.round(precision)} sec"
end