/test/benchmark/index.rb

http://github.com/rstacruz/ion · Ruby · 9 lines · 8 code · 1 blank · 0 comment · 0 complexity · 4f6d86cbc5abc8858d8726a3681b733b MD5 · raw file

  1. require File.expand_path('../../benchmark_helper', __FILE__)
  2. class IonMark < BM
  3. setup
  4. size = Album.all.size
  5. measure "Indexing", size do
  6. Album.all.each { |a| a.update_ion_indices }
  7. end
  8. end