Module: Benchmark::Driver::YamlParser
- Defined in:
- lib/benchmark/driver/yaml_parser.rb
Constant Summary collapse
- DEFAULT_RUNNER =
In YamlParser, we can’t use :call.
:exec- DEFAULT_OUTPUT =
:ips
Class Method Summary collapse
Class Method Details
.parse(prelude: '', loop_count: nil, benchmark:, runner: {}, output: {}) ⇒ Benchmark::Driver::Configuration
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/benchmark/driver/yaml_parser.rb', line 12 def parse(prelude: '', loop_count: nil, benchmark:, runner: {}, output: {}) jobs = parse_benchmark(benchmark) jobs.each do |job| job.prelude = prelude job.loop_count ||= loop_count end config = Benchmark::Driver::Configuration.new(jobs) config. = parse_runner(runner) config. = parse_output(output) config end |