カーネル読書会でmallocの話をしていただいたのだが、そのときの質疑でRubyの実装の話がでた。そこで思い立ちRubyをoprofileでプロファイルして見た。(matzさんにトラックバックを張っておく) # cd /usr/src/ruby-1.8.4/test # opcontrol --start; ruby runner.rb; opcontrol --stop 適当なRubyアプリケーションをしらなかったので、テストプログラムを実行してベンチマークとした。実行したマシンは1700MhzのPentium M、メモリ1GBのノートPC。 # opreport -l CPU: CPU with timer interrupt, speed 0 MHz (estimated) Profiling through timer interrupt samples % app