class Rgot::BenchmarkResult
Attributes
@dynamic n, t
Public Class Methods
Source
# File lib/rgot/benchmark_result.rb, line 9 def initialize(n:, t:) @n = n @t = t end
Public Instance Methods
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