diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-06-10 22:04:51 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-06-10 22:04:52 +0900 |
commit | caa90202c9d2acbb9bce32ceebe6166c2f1de5d0 (patch) | |
tree | f42558656753c4e396467c6b8bb82533b244836c /benchmark | |
parent | 880204cf55813c975f3bbd0be93b292a099d5890 (diff) | |
download | bundler-caa90202c9d2acbb9bce32ceebe6166c2f1de5d0.tar.gz |
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
```
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/irb_exec.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/irb_exec.yml b/benchmark/irb_exec.yml index 5575c00537..28933f8b38 100644 --- a/benchmark/irb_exec.yml +++ b/benchmark/irb_exec.yml @@ -1,10 +1,10 @@ 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 |