/test/benchmark/index.rb
http://github.com/rstacruz/ion · Ruby · 9 lines · 8 code · 1 blank · 0 comment · 0 complexity · 4f6d86cbc5abc8858d8726a3681b733b MD5 · raw file
- require File.expand_path('../../benchmark_helper', __FILE__)
- class IonMark < BM
- setup
- size = Album.all.size
- measure "Indexing", size do
- Album.all.each { |a| a.update_ion_indices }
- end
- end