LightCSVとFasterCSVの速度差はこんな感じだよ

[mako@akari]foreach i in lightcsv.rb fastercsv.rb        
echo $i
/usr/bin/time ruby $i   
end

lightcsv.rb
       17.40 real        15.60 user         1.76 sys
fastercsv.rb
       21.31 real        18.73 user         2.53 sys

FasterCSVってrequire 'faster_csv'なんだよね。

[mako@akari]cat fastercsv.rb                                    [~/Programming/Ruby_LightCSV]
#!/usr/bin/env ruby
#
#  Created by mako on 2007-05-02.
#  Copyright (c) mako. All rights reserved.
#  What?
#  This_script.rb
#  How to use?
#  This_script.rb

begin

  require "rubygems"
  require "faster_csv"
  
  FasterCSV.foreach("/Projects/Mapping50K_Hind240.na22.annot.csv") do |row|
    row[0..4]
  end
  
rescue Exception => e
  p e.message
  p e.backtrace
end

にしても本当にPythonはえーなぁ。