Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2011闇RubyKaigi あなたの知らないREEの使い方

6,626 views

Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

2011闇RubyKaigi あなたの知らないREEの使い方

  1. 1. 2011 7 19
  2. 2. 2011 7 19
  3. 3. 2011 7 19
  4. 4. 2011 7 19
  5. 5. 2011 7 19
  6. 6. 2011 7 19
  7. 7. 2011 7 19
  8. 8. 2011 7 19
  9. 9. 2011 7 19
  10. 10. 2011 7 19
  11. 11. 2011 7 19
  12. 12. 2011 7 19
  13. 13. RUBY_HEAP_MIN_SLOTS=1000000 RUBY_HEAP_SLOTS_INCREMENT=1000000 RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 RUBY_GC_MALLOC_LIMIT=600000000 RUBY_HEAP_FREE_MIN=20000002011 7 19
  14. 14. 2011 7 19
  15. 15. 2011 7 19
  16. 16. 2011 7 19
  17. 17. def  fib(n)    n  <  2  ?  n  :  fib(n  -­‐  2)  +  fib(n  -­‐  1) end puts  fib(35)2011 7 19
  18. 18. def  fib(n)    n  <  2  ?  n  :  fib(n  -­‐  2)  +  fib(n  -­‐  1) end puts  fib(35)2011 7 19
  19. 19. def  fib(n)    n  <  2  ?  n  :  fib(n  -­‐  2)  +  fib(n  -­‐  1) end puts  fib(35)2011 7 19
  20. 20. $  script/server2011 7 19
  21. 21. $  for  i  in  {1..10};      do  time      curl  -­‐I  -­‐X  GET      http://localhost:3000/ users/login_form  ;done2011 7 19
  22. 22. cpu  2.103  total cpu  0.446  total cpu  1.010  total cpu  0.402  total cpu  0.856  total cpu  0.426  total cpu  0.864  total cpu  0.430  total cpu  0.975  total cpu  0.440  total cpu  0.858  total #  maybe  GC cpu  0.856  total    cpu  1.021  total cpu  0.969  total cpu  0.383  total cpu  0.869  total cpu  0.385  total cpu  0.382  total2011 7 19
  23. 23. 2011 7 19
  24. 24. 2011 7 19
  25. 25. 2011 7 19

×