Sha256: 94f8ea662c13f58dca2f60c217e5f69efc3f69a04098f179f7678d64e41f1d97

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

require 'benchmark'
require File.expand_path('../../lib/durable_call.rb', __FILE__)

n = 500000
Benchmark.bm do |bm|
  object = Object.new

  bm.report do
    n.times do
      object.__send__ :object_id
    end
  end

  bm.report do
    n.times do
      DurableCall.call(object, :object_id)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
durable_call-0.0.1 benchmarks/simple_method.rb