Ruby Ruby 2.6 preview 3 benchmark

watsy0007 · 2018年11月02日 · 最后由 numbcoder 回复于 2018年11月04日 · 2124 次阅读
$ benchmark-driver benchmark.yml --rbenv '2.0.0::2.0.0-p648 --disable-gems;2.5.3::2.5.3 --disable-gems;2.6.0-preview1::2.6.0-preview1 --disable-gems;2.6.0-preview1+JIT::2.6.0-preview1 --disable-gems --jit;2.6.0-preview2::2.6.0-preview2 --disable-gems;2.6.0-preview2+JIT::2.6.0-preview2 --disable-gems --jit;2.6.0-preview3::trunk --disable-gems;2.6.0-preview3+JIT::trunk --disable-gems --jit' -v --repeat-count 24
2.0.0: ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-linux]
2.5.3: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
2.6.0-preview1: ruby 2.6.0preview1 (2018-02-24 trunk 62554) [x86_64-linux]
2.6.0-preview1+JIT: ruby 2.6.0preview1 (2018-02-24 trunk 62554) +JIT [x86_64-linux]
2.6.0-preview2: ruby 2.6.0preview2 (2018-05-31 trunk 63539) [x86_64-linux]
2.6.0-preview2+JIT: ruby 2.6.0preview2 (2018-05-31 trunk 63539) +JIT [x86_64-linux]
2.6.0-preview3: ruby 2.6.0dev (2018-10-31 trunk 65474) [x86_64-linux]
2.6.0-preview3+JIT: ruby 2.6.0dev (2018-10-31 trunk 65474) +JIT [x86_64-linux]
Calculating -------------------------------------
                              2.0.0       2.5.3  2.6.0-preview1  2.6.0-preview1+JIT  2.6.0-preview2  2.6.0-preview2+JIT  2.6.0-preview3  2.6.0-preview3+JIT
Optcarrot Lan_Master.nes     34.616      48.529          53.016              59.234          53.307              73.908          54.598              86.568 fps

Comparison:
             Optcarrot Lan_Master.nes
      2.6.0-preview3+JIT:        86.6 fps
      2.6.0-preview2+JIT:        73.9 fps - 1.17x  slower
      2.6.0-preview1+JIT:        59.2 fps - 1.46x  slower
          2.6.0-preview3:        54.6 fps - 1.59x  slower
          2.6.0-preview2:        53.3 fps - 1.62x  slower
          2.6.0-preview1:        53.0 fps - 1.63x  slower
                   2.5.3:        48.5 fps - 1.78x  slower
                   2.0.0:        34.6 fps - 2.50x  slower

来源 ruby 2.6 preview 3 benchmark

说好的 x3 呢?

nouse 回复

ruby 3.0 x 3

2.6 已经比 2.0 快 2.5 倍了,马上就到 3 倍了👍

不知道这个 benchmark 是否具有普适性,比 2.5 快了 1.78 也算是很不错了

需要 登录 后方可回复, 如果你还没有账号请 注册新账号