class Rgot::BenchmarkResult

Attributes

n[R]

@dynamic n, t

t[R]

Public Class Methods

new(n:, t:) click to toggle source
# File lib/rgot/benchmark_result.rb, line 9
def initialize(n:, t:)
  @n = n
  @t = t
end

Public Instance Methods

to_s() click to toggle source
# File lib/rgot/benchmark_result.rb, line 14
def to_s
  sprintf("%d\t%d ns/op", @n, @t / @n * 1_000_000_000)
end