SlideShare a Scribd company logo
Ruby
                           Kenta Murata
                2011.02.20 Ruby Workshop Sapporo




2011   2   20                                      1
2011   2   20   2
•        a.k.a @mrkn

           • Ruby
           • Ruby
           •
           •                      SE

           •

2011   2   20                          3
AD



2011   2   20        4
2011
2010   2
       3   20
           1    5
Hokuriku.rb x




2011   2   20      6
Hokuriku.rb x

           • 3 20
           •
           • @igaiga555,         (        )

           • @june29,       (                 )

           • @mrkn,        ← it’s me!!!


2011   2   20                                     7
Ruby
                           Kenta Murata
                2011.02.20 Ruby Workshop Sapporo




2011   2   20                                      8
test-all
       • test-all
       •


       •

2011   2   20                  9
ext/

       • ext/extmk.rb
       • make -j 4             ext

       • extmk.rb       -j n         n




2011   2   20                            10
MacRuby      gem

       • gem list   2

       •
       •


2011   2   20             11
• Oniguruma
       • http://firefly.cr.ie.u-ryukyu.ac.jp/~shinya/xhago/
       • Oniguruma
       • http://twitter.com/#!/yukihiro_matz/status/
                35521472273321984



2011   2   20                                               12
SSL/TLS

       • openssl
       •         GnuTLS   CryptoAPI

       •


2011   2   20                         13
readline6
       • readline6     GPL3

       • ruby
       •             libedit

       • libedit       readline
                     readline


2011   2   20                     14
test-all



2011   2   20              15
Ruby
       • Ruby

       •                 +

       • make test-all


2011   2   20                16
@sora_h



2011   2   20             17
2011   2   20   18
2011   2   20   19
4



2011   2   20       20
2011   2   20   21
2011   2   20   22
test-all

                            disk
                process




2011   2   20                        23
test-all
                             workers




                dispatcher




2011   2   20                                 24
OS      Mac OS X 10.6.6



                CPU   2.66 GHz Intel Core i7



                MEM   8GB 1067 MHz DDR3



2011   2   20                                  25
• non parallel
        • make TESTS=’-v -x fiber ruby’ test-all
       • parallel
        • make TESTS=’-v -j<N> -x fiber ruby’ test-all
        • <N>
        •                    1, 2, 3, 5, 8, 13


2011   2   20                                           26
150.0



                112.5



                 75.0



                 37.5



                   0
                        no -j   -j1   -j2   -j3    -j5   -j8   -j13

                        TOTAL          TESTCASES           TESTS/S


2011   2   20                                                         27
3.00



                2.25



                1.50



                0.75



                  0
                       no -j   -j1   -j2   -j3   -j5   -j8   -j13

                  TOTAL        TESTCASES     TESTS/S     ASSERTIONS/S


2011   2   20                                                           28
• @sora_h   test-all

       •
                              4

       • CPU
       •
2011   2   20                     29
2011   2   20   30
•
       •

       • lib/test/*

2011   2   20         31
2011   2   20   32
ext/

       • ext/extmk.rb
       • make -j 4             ext

       • extmk.rb       -j n         n




2011   2   20                            33
MacRuby      gem

       • gem list   2

       •
       •


2011   2   20             34
• Oniguruma
       • http://firefly.cr.ie.u-ryukyu.ac.jp/~shinya/xhago/
       • Oniguruma
       • http://twitter.com/#!/yukihiro_matz/status/
                35521472273321984



2011   2   20                                               35
SSL/TLS

       • openssl
       •         GnuTLS   CryptoAPI

       •


2011   2   20                         36
readline6
       • readline6     GPL3

       • ruby
       •             libedit

       • libedit       readline
                     readline


2011   2   20                     37
Ruby


2011   2   20          38

More Related Content

PDF
Ruby 1.9.3 の新機能と変更点
KEY
ぼくとわたしのVim
KEY
ruby test-all parallel running
PDF
Introduction to ATDD with Cucumber and RSpec
PDF
Float is Legacy
PDF
The world without the literal notation for floating-point numbers
PDF
The world without float literal
PDF
関数型プログラミングの世界
Ruby 1.9.3 の新機能と変更点
ぼくとわたしのVim
ruby test-all parallel running
Introduction to ATDD with Cucumber and RSpec
Float is Legacy
The world without the literal notation for floating-point numbers
The world without float literal
関数型プログラミングの世界

More from Kenta Murata (13)

PDF
Let's begin Behavior Driven Development using RSpec
PDF
Rubyをたのしくするために私が考えていること
PDF
5分弱で分かる量子ビット
PDF
Rubykaigi2010mrkn bigdecimal
PDF
Ruby における絵文字エンコーディング間の相互変換ダイアグラム (案)
PDF
校内勉強会のススメ An encouragement to hold workshops In your school
PDF
Ruby の標準乱数生成器とその改善案
PDF
5分で分かる Measure
PDF
Measure 単位付き数値ライブラリ
PDF
情報学特論#02
PDF
情報学特論#01
PDF
北海道関数型言語勉強会@札幌#2のお知らせ
PDF
Ruby 拡張モジュール入門
Let's begin Behavior Driven Development using RSpec
Rubyをたのしくするために私が考えていること
5分弱で分かる量子ビット
Rubykaigi2010mrkn bigdecimal
Ruby における絵文字エンコーディング間の相互変換ダイアグラム (案)
校内勉強会のススメ An encouragement to hold workshops In your school
Ruby の標準乱数生成器とその改善案
5分で分かる Measure
Measure 単位付き数値ライブラリ
情報学特論#02
情報学特論#01
北海道関数型言語勉強会@札幌#2のお知らせ
Ruby 拡張モジュール入門
Ad

Ruby の懸案事項

  • 1. Ruby Kenta Murata 2011.02.20 Ruby Workshop Sapporo 2011 2 20 1
  • 2. 2011 2 20 2
  • 3. a.k.a @mrkn • Ruby • Ruby • • SE • 2011 2 20 3
  • 4. AD 2011 2 20 4
  • 5. 2011 2010 2 3 20 1 5
  • 7. Hokuriku.rb x • 3 20 • • @igaiga555, ( ) • @june29, ( ) • @mrkn, ← it’s me!!! 2011 2 20 7
  • 8. Ruby Kenta Murata 2011.02.20 Ruby Workshop Sapporo 2011 2 20 8
  • 9. test-all • test-all • • 2011 2 20 9
  • 10. ext/ • ext/extmk.rb • make -j 4 ext • extmk.rb -j n n 2011 2 20 10
  • 11. MacRuby gem • gem list 2 • • 2011 2 20 11
  • 12. • Oniguruma • http://firefly.cr.ie.u-ryukyu.ac.jp/~shinya/xhago/ • Oniguruma • http://twitter.com/#!/yukihiro_matz/status/ 35521472273321984 2011 2 20 12
  • 13. SSL/TLS • openssl • GnuTLS CryptoAPI • 2011 2 20 13
  • 14. readline6 • readline6 GPL3 • ruby • libedit • libedit readline readline 2011 2 20 14
  • 15. test-all 2011 2 20 15
  • 16. Ruby • Ruby • + • make test-all 2011 2 20 16
  • 17. @sora_h 2011 2 20 17
  • 18. 2011 2 20 18
  • 19. 2011 2 20 19
  • 20. 4 2011 2 20 20
  • 21. 2011 2 20 21
  • 22. 2011 2 20 22
  • 23. test-all disk process 2011 2 20 23
  • 24. test-all workers dispatcher 2011 2 20 24
  • 25. OS Mac OS X 10.6.6 CPU 2.66 GHz Intel Core i7 MEM 8GB 1067 MHz DDR3 2011 2 20 25
  • 26. • non parallel • make TESTS=’-v -x fiber ruby’ test-all • parallel • make TESTS=’-v -j<N> -x fiber ruby’ test-all • <N> • 1, 2, 3, 5, 8, 13 2011 2 20 26
  • 27. 150.0 112.5 75.0 37.5 0 no -j -j1 -j2 -j3 -j5 -j8 -j13 TOTAL TESTCASES TESTS/S 2011 2 20 27
  • 28. 3.00 2.25 1.50 0.75 0 no -j -j1 -j2 -j3 -j5 -j8 -j13 TOTAL TESTCASES TESTS/S ASSERTIONS/S 2011 2 20 28
  • 29. • @sora_h test-all • 4 • CPU • 2011 2 20 29
  • 30. 2011 2 20 30
  • 31. • • lib/test/* 2011 2 20 31
  • 32. 2011 2 20 32
  • 33. ext/ • ext/extmk.rb • make -j 4 ext • extmk.rb -j n n 2011 2 20 33
  • 34. MacRuby gem • gem list 2 • • 2011 2 20 34
  • 35. • Oniguruma • http://firefly.cr.ie.u-ryukyu.ac.jp/~shinya/xhago/ • Oniguruma • http://twitter.com/#!/yukihiro_matz/status/ 35521472273321984 2011 2 20 35
  • 36. SSL/TLS • openssl • GnuTLS CryptoAPI • 2011 2 20 36
  • 37. readline6 • readline6 GPL3 • ruby • libedit • libedit readline readline 2011 2 20 37
  • 38. Ruby 2011 2 20 38