Class: Benchmark::Driver::BenchmarkResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/benchmark/driver/benchmark_result.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#iterationsObject

Returns the value of attribute iterations

Returns:

  • (Object)

    the current value of iterations



5
6
7
# File 'lib/benchmark/driver/benchmark_result.rb', line 5

def iterations
  @iterations
end

#jobObject

Returns the value of attribute job

Returns:

  • (Object)

    the current value of job



5
6
7
# File 'lib/benchmark/driver/benchmark_result.rb', line 5

def job
  @job
end

#max_rssObject

Returns the value of attribute max_rss

Returns:

  • (Object)

    the current value of max_rss



5
6
7
# File 'lib/benchmark/driver/benchmark_result.rb', line 5

def max_rss
  @max_rss
end

#realObject Also known as: duration

Returns the value of attribute real

Returns:

  • (Object)

    the current value of real



5
6
7
# File 'lib/benchmark/driver/benchmark_result.rb', line 5

def real
  @real
end

Instance Method Details

#ip100msObject



12
13
14
# File 'lib/benchmark/driver/benchmark_result.rb', line 12

def ip100ms
  ips / 10
end

#ipsObject



8
9
10
# File 'lib/benchmark/driver/benchmark_result.rb', line 8

def ips
  iterations / real
end