ruby-changes:56069
From: Takashi <ko1@a...>
Date: Mon, 10 Jun 2019 22:06:18 +0900 (JST)
Subject: [ruby-changes:56069] Takashi Kokubun: caa90202c9 (trunk): Make sure to suppress .irbrc on benchmark
https://git.ruby-lang.org/ruby.git/commit/?id=caa90202c9 From caa90202c9d2acbb9bce32ceebe6166c2f1de5d0 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Mon, 10 Jun 2019 22:04:51 +0900 Subject: Make sure to suppress .irbrc on benchmark By the way, this is already improved by nobu: ``` $ benchmark-driver benchmark/irb_exec.yml --rbenv '2.6.3;2.7.0-preview1;before;after' -v 2.6.3: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux] 2.7.0-preview1: ruby 2.7.0preview1 (2019-05-31 trunk c55db6aa271df4a689dc8eb0039c929bf6ed43ff) [x86_64-linux] before: ruby 2.7.0dev (2019-06-10T21:13:14+09:00 master 973fd18f11) [x86_64-linux] after: ruby 2.7.0dev (2019-06-10T21:18:56+09:00 master 976c689ad4) [x86_64-linux] Calculating ------------------------------------- 2.6.3 2.7.0-preview1 before after irb_exec 11.868 5.872 6.297 10.278 i/s - 30.000 times in 2.527776s 5.108997s 4.764167s 2.918821s Comparison: irb_exec 2.6.3: 11.9 i/s after: 10.3 i/s - 1.15x slower before: 6.3 i/s - 1.88x slower 2.7.0-preview1: 5.9 i/s - 2.02x slower ``` diff --git a/benchmark/irb_exec.yml b/benchmark/irb_exec.yml index 5575c00..28933f8 100644 --- a/benchmark/irb_exec.yml +++ b/benchmark/irb_exec.yml @@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/irb_exec.yml#L1 prelude: | # frozen_string_literal: true require 'rbconfig' - irb = File.join(File.dirname(RbConfig.ruby), 'irb') + irb_f = [File.join(File.dirname(RbConfig.ruby), 'irb'), '-f'] benchmark: irb_exec: | - IO.popen(irb, 'w') do |io| + IO.popen(irb_f, 'w') do |io| io.write('exit') end loop_count: 30 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/