Sha256: 4462129856ca55a77780500dc3406acf3bf3b74015154073bc134c01f7c01d11

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

module Rgot
  class BenchmarkResult
    def initialize(n:, t:)
      @n = n
      @t = t
    end

    def to_s
      sprintf("%d\t%d ns/op", @n, @t / @n * 1_000_000_000)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rgot-1.1.0 lib/rgot/benchmark_result.rb
rgot-0.2.0 lib/rgot/benchmark_result.rb