summaryrefslogtreecommitdiff
path: root/benchmark/irb_exec.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/irb_exec.yml')
-rw-r--r--benchmark/irb_exec.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmark/irb_exec.yml b/benchmark/irb_exec.yml
new file mode 100644
index 0000000000..28933f8b38
--- /dev/null
+++ b/benchmark/irb_exec.yml
@@ -0,0 +1,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