Skip to content

Instantly share code, notes, and snippets.

@rsinger
Created September 22, 2010 02:58
Show Gist options
  • Save rsinger/591050 to your computer and use it in GitHub Desktop.
Save rsinger/591050 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'marc'
MARC::Reader.new('blacklight-data/lc_records.utf8.mrc').each do | rec |
rec.fields('001')
end
@rsinger
Copy link
Author

rsinger commented Sep 22, 2010

ross@ross-netbook:~/tmp/marc$ time ruby ./just_001s-index.rb

real 1m2.646s
user 0m55.727s
sys 0m5.212s
ross@ross-netbook:~/tmp/marc$ time ruby ./just_001s-index.rb

real 1m0.587s
user 0m55.023s
sys 0m5.040s
ross@ross-netbook:~/tmp/marc$ time ruby ./just_001s-index.rb

real 1m1.006s
user 0m54.623s
sys 0m5.140s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment