PageRenderTime 16ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/test/benchmark/index.rb

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