summaryrefslogtreecommitdiff
path: root/benchmark/irb_exec.yml
blob: 28933f8b382429d1fabdddc52392aead1c6bb868 (plain)
1
2
3
4
5
6
7
8
9
10
prelude: |
  # frozen_string_literal: true
  require 'rbconfig'
  irb_f = [File.join(File.dirname(RbConfig.ruby), 'irb'), '-f']
benchmark:
  irb_exec: |
    IO.popen(irb_f, 'w') do |io|
      io.write('exit')
    end
loop_count: 30