Module: RSpec::Benchmark
- Included in:
- TimingMatcher::Matcher
- Defined in:
- lib/rspec/benchmark.rb,
lib/rspec/benchmark/version.rb,
lib/rspec/benchmark/matchers.rb,
lib/rspec/benchmark/formatter.rb,
lib/rspec/benchmark/configuration.rb,
lib/rspec/benchmark/timing_matcher.rb,
lib/rspec/benchmark/iteration_matcher.rb,
lib/rspec/benchmark/allocation_matcher.rb,
lib/rspec/benchmark/comparison_matcher.rb,
lib/rspec/benchmark/complexity_matcher.rb
Defined Under Namespace
Modules: AllocationMatcher, ComparisonMatcher, ComplexityMatcher, Formatter, IterationMatcher, Matchers, TimingMatcher Classes: Configuration
Constant Summary collapse
- VERSION =
"0.6.0"
Class Attribute Summary collapse
-
.configuration ⇒ RSpec::Benchmark::Configuration
Current configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Change current configuration.
-
.reset_configuration ⇒ RSpec::Benchmark::Configuration
Reset current configuration to defaults.
Class Attribute Details
.configuration ⇒ RSpec::Benchmark::Configuration
Current configuration
18 19 20 |
# File 'lib/rspec/benchmark.rb', line 18 def self.configuration @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Change current configuration
39 40 41 |
# File 'lib/rspec/benchmark.rb', line 39 def self.configure yield configuration end |
.reset_configuration ⇒ RSpec::Benchmark::Configuration
Reset current configuration to defaults
27 28 29 |
# File 'lib/rspec/benchmark.rb', line 27 def self.reset_configuration @configuration = Configuration.new end |