https://gist.github.com/brixen/6705046#comment-915829 2013-09-26T02:37:21Z
👎 for "specialness". http://www.urbandictionary.com/define.php?term=special
| $ bundle exec ruby-prof --printer=graph --file=graph_text_reproduction.txt lib/reproduction.rb | |
| $ bundle list | |
| Gems included by the bundle: | |
| * bundler (1.3.5) | |
| * ruby-prof (0.13.1 39757df) | |
| $ uname -a | |
| Darwin [redacted] 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 |
| http://bottledup.net/2013/02/25/rubyconf-au-was-awesome/ | |
| http://blog.newrelic.com/2013/03/05/australian-ruby-rising/ | |
| http://keithpitty.com/blog/archives/2013-02-15-anticipating-rubyconf-austalia-2013 | |
| http://netengine.com.au/blog/ruby-conf-australia-2013-in-review-hacking-with-gems.html | |
| http://netengine.com.au/blog/ruby-conf-australia-2013-in-review-lessons-learned.html | |
| http://netengine.com.au/blog/rubyconfau-in-review-giftoppr.html | |
| http://netengine.com.au/blog/rubyconfau-in-review-boxen.html | |
| Chinese | |
| http://ruby-china.org/topics/8859 |
https://gist.github.com/brixen/6705046#comment-915829 2013-09-26T02:37:21Z
👎 for "specialness". http://www.urbandictionary.com/define.php?term=special
| 3: CXX vm/builtin/find_object.cpp | |
| 2: CXX vm/builtin/fixnum.cpp | |
| 2: CXX vm/builtin/heap_dump.cpp | |
| 3: CXX vm/builtin/float.cpp | |
| vm/builtin/float.cpp: In static member function ‘static rubinius::Float* rubinius::Float::from_cstr(rubinius::State*, const char*, const char*, rubinius::Object*)’: | |
| vm/builtin/float.cpp:166: error: ‘strnlen’ was not declared in this scope | |
| Error: g++ -I/private/var/folders/SZ/SZere5L+EMORF-dGje2dyU+++TI/-Tmp-/ruby-build.20130925215248.57517/rubinius-2.0.0-dev/vm -I/private/var/folders/SZ/SZere5L+EMORF-dGje2dyU+++TI/-Tmp-/ruby-build.20130925215248.57517/rubinius-2.0.0-dev/vm/include -I/private/var/folders/SZ/SZere5L+EMORF-dGje2dyU+++TI/-Tmp-/ruby-build.20130925215248.57517/rubinius-2.0.0-dev/vm/builtin -I. -Ivm/test/cxxtest -I/private/var/folders/SZ/SZere5L+EMORF-dGje2dyU+++TI/-Tmp-/ruby-build.20130925215248.57517/rubinius-2.0.0-dev/vendor/llvm/include -I/private/var/folders/SZ/SZere5L+EMORF-dGje2dyU+++TI/-Tmp-/ruby-build.20130925215248.57517/rubinius-2.0.0-dev/vendor/udis86 -I/private/var/ |
| # Summary | |
| Old version New version | |
| MRI 2.0 9.23 5.37 | |
| -- 5.39 | |
| MRI 1.9.3 7.98 4.86 | |
| JRuby 1.7.4 12.29 2.58 | |
| JRuby 1.7.4 –2.0 8.54 2.85 | |
| JRuby 1.7.4 –2.0 12.3 2.62 | |
| JRuby 1.7.4 –2.0 6.6 2.71 |
| # Based on https://gist.github.com/agrimm/6144794 , but running it with TIMES = 1_000_000 | |
| $ ruby --version; time ruby delete-tr.rb ; rbenv shell 2.0.0-p247 ; ruby --version; time ruby delete-tr.rb | |
| rubinius 2.0.0.n213 (1.9.3 c7f6ce0a 2013-08-01 JI) [x86_64-apple-darwin10.8.0] | |
| Rehearsal ---------------------------------------------------- | |
| delete 238.547355 0.441726 238.989081 (239.530814) | |
| tr 239.829005 0.381523 240.210528 (240.779957) | |
| gsub with regexp 1267.507984 7.022022 1274.530006 (1288.916921) | |
| gsub with string 1307.494479 8.922239 1316.416718 (1353.190891) | |
| ---------------------------------------- total: 3070.146333sec |
| $ uname -a | |
| Darwin [redacted] 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 | |
| $ ruby --version | |
| rubinius 2.0.0.n215 (1.9.3 0849828f 2013-08-03 JI) [x86_64-apple-darwin10.8.0] | |
| $ bin/benchmark --target r benchmark/core/string/bench_delete.rb | |
| === ruby === | |
| Empty string delete! 544648.6 (±0.7%) i/s - 2733378 in 5.018887s (cycle=23977) | |
| Long string delete! with empty argument | |
| 8720.7 (±2.3%) i/s - 44000 in 5.048465s (cycle=800) |
| $ uname -a | |
| Darwin [redacted] 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 | |
| $ ruby --version | |
| rubinius 2.0.0.n215 (1.9.3 0849828f 2013-08-03 JI) [x86_64-apple-darwin10.8.0] | |
| $ bin/benchmark --target r benchmark/core/string/bench_delete.rb | |
| === ruby === | |
| Empty string delete! 544648.6 (±0.7%) i/s - 2733378 in 5.018887s (cycle=23977) | |
| Long string delete! with empty argument | |
| 8720.7 (±2.3%) i/s - 44000 in 5.048465s (cycle=800) |
| require 'benchmark' | |
| TIMES = 1000 | |
| s = "a long string" * 1000 | |
| Benchmark.bmbm do |x| | |
| x.report("delete") do | |
| TIMES.times { s.delete(" ") } | |
| end |
| # http://ja.wikipedia.org/wiki/%E5%93%BA%E4%B9%B3%E9%A1%9E | |
| class Mammal | |
| end | |
| # http://ja.wikipedia.org/wiki/%E6%9C%89%E8%A2%8B%E9%A1%9E | |
| class Marsupial < Mammal | |
| end | |
| # http://ja.wikipedia.org/wiki/%E7%9C%9F%E7%8D%A3%E4%B8%8B%E7%B6%B1 | |
| class Placental < Mammal |