module RSpec::Benchmark::Matchers
def bench_range(*args)
- Api: - public
Parameters:
-
ratio(Integer) -- -
limit(Integer) -- -
start(Integer) --
def bench_range(*args) ::Benchmark::Trend.range(*args) end
def perform_allocation(objects, **options)
- Api: - public
Parameters:
-
iterations(Integer) --
def perform_allocation(objects, **options) AllocationMatcher::Matcher.new(objects, **options) end
def perform_at_least(iterations, **options)
- Api: - public
Parameters:
-
iterations(Integer) --
def perform_at_least(iterations, **options) IterationMatcher::Matcher.new(iterations, **options) end
def perform_constant(**options)
- Api: - public
def perform_constant(**options) ComplexityMatcher::Matcher.new(:constant, **options) end
def perform_exponential(**options)
- Api: - public
def perform_exponential(**options) ComplexityMatcher::Matcher.new(:exponential, **options) end
def perform_faster_than(**options, &sample)
- Api: - public
Parameters:
-
sample(Proc) --
def perform_faster_than(**options, &sample) ComparisonMatcher::Matcher.new(sample, :faster, **options) end
def perform_linear(**options)
- Api: - public
def perform_linear(**options) ComplexityMatcher::Matcher.new(:linear, **options) end
def perform_logarithmic(**options)
- Api: - public
def perform_logarithmic(**options) ComplexityMatcher::Matcher.new(:logarithmic, **options) end
def perform_power(**options)
- Api: - public
def perform_power(**options) ComplexityMatcher::Matcher.new(:power, **options) end
def perform_slower_than(**options, &sample)
- Api: - public
Parameters:
-
sample(Proc) --
def perform_slower_than(**options, &sample) ComparisonMatcher::Matcher.new(sample, :slower, **options) end
def perform_under(threshold, **options)
- Api: - public
Parameters:
-
threshold(Float) --
def perform_under(threshold, **options) TimingMatcher::Matcher.new(threshold, **options) end