Module: FactoryBotInstruments

Defined in:
lib/factory_bot_instruments/tracing.rb,
lib/factory_bot_instruments/version.rb,
lib/factory_bot_instruments/benchmarking.rb,
lib/factory_bot_instruments.rb

Defined Under Namespace

Modules: Benchmarking, Tracing, TracingHelpers Classes: Benchmark

Constant Summary collapse

VERSION =
"1.2.0"

Class Method Summary collapse

Class Method Details

.benchmark_report(options = {}) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/factory_bot_instruments.rb', line 14

def self.benchmark_report(options = {})
  options = { :progress => true }.merge(options)

  FactoryBot.benchmark_all(**options).each do |benchmark|
    puts benchmark
  end
end