module RSpec::Benchmark::Matchers

def bench_range(*args)

Other tags:
    Api: - public

Parameters:
  • ratio (Integer) --
  • limit (Integer) --
  • start (Integer) --
def bench_range(*args)
  ::Benchmark::Trend.range(*args)
end

def perform_allocation(objects, **options)

Other tags:
    Api: - public

Parameters:
  • iterations (Integer) --
def perform_allocation(objects, **options)
  AllocationMatcher::Matcher.new(objects, options)
end

def perform_at_least(iterations, **options)

Other tags:
    Api: - public

Parameters:
  • iterations (Integer) --
def perform_at_least(iterations, **options)
  IterationMatcher::Matcher.new(iterations, options)
end

def perform_constant(**options)

Other tags:
    Api: - public
def perform_constant(**options)
  ComplexityMatcher::Matcher.new(:constant, options)
end

def perform_exponential(**options)

Other tags:
    Api: - public
def perform_exponential(**options)
  ComplexityMatcher::Matcher.new(:exponential, options)
end

def perform_faster_than(**options, &sample)

Other tags:
    Api: - public

Parameters:
  • sample (Proc) --
def perform_faster_than(**options, &sample)
  ComparisonMatcher::Matcher.new(sample, :faster, options)
end

def perform_linear(**options)

Other tags:
    Api: - public
def perform_linear(**options)
  ComplexityMatcher::Matcher.new(:linear, options)
end

def perform_logarithmic(**options)

Other tags:
    Api: - public
def perform_logarithmic(**options)
  ComplexityMatcher::Matcher.new(:logarithmic, options)
end

def perform_power(**options)

Other tags:
    Api: - public
def perform_power(**options)
  ComplexityMatcher::Matcher.new(:power, options)
end

def perform_slower_than(**options, &sample)

Other tags:
    Api: - public

Parameters:
  • sample (Proc) --
def perform_slower_than(**options, &sample)
  ComparisonMatcher::Matcher.new(sample, :slower, options)
end

def perform_under(threshold, **options)

Other tags:
    Api: - public

Parameters:
  • threshold (Float) --
def perform_under(threshold, **options)
  TimingMatcher::Matcher.new(threshold, options)
end