class Benchmark::Memory::Job::IOOutput

Output the results of jobs into an IO.

def initialize(io)

Parameters:
  • io (#puts) -- The IO to write on.
def initialize(io)
  @io = io
end

def put_comparison(comparison)

Returns:
  • (void) -
def put_comparison(comparison)
  @io.puts
  @io.puts 'Comparison:'
  @io.puts ComparisonFormatter.new(comparison)
end

def put_entry(entry)

Returns:
  • (void) -
def put_entry(entry)
  @io.puts EntryFormatter.new(entry)
end

def put_header

Returns:
  • (void) -
def put_header
  @io.puts 'Calculating -------------------------------------'
end

def put_hold_notice

Returns:
  • (void) -
def put_hold_notice
  @io.puts
  @io.puts 'Pausing here -- run Ruby again to ' \
           'measure the next benchmark...'
end