Sha256: 986181a89a7ce20eff05417a72f442178a078d7eba3d265e23a7b240e51b689d

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require 'benchmark/ips'
require 'benchmark/memory'
require 'active_support/core_ext/numeric'
require 'active_support/core_ext/integer'

require_relative '../lib/dotiw/time_hash'

from = Time.now
to = Time.now + 1.year + 2.months + 3.weeks + 4.days + 5.hours + 6.minutes + 7.seconds

%i[ips memory].each do |type|
  Benchmark.public_send(type) do |x|
    x.report('master') { DOTIW::TimeHash.new(nil, from, to) }

    x.compare!
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dotiw-5.3.3 benchmarks/time_hash_bench.rb
dotiw-5.3.2 benchmarks/time_hash_bench.rb
dotiw-5.3.1 benchmarks/time_hash_bench.rb
dotiw-5.3.0 benchmarks/time_hash_bench.rb