Sha256: f624c175a80bd997987d8fef2cf192bbdfc0048ce703d8ac55d765150b1aa83e

Contents?: true

Size: 219 Bytes

Versions: 1

Compression:

Stored size: 219 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
rgot-1.2.0 lib/rgot/benchmark_result.rb