Sha256: 0331f82007160640f90e3a43dccb693f957a0aaa31cc5739a487cfa3c80f966f
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
require 'integration_test_helper.rb' require 'benchmark' class RecordAdditionPerformanceTest < ActiveSupport::TestCase fixtures :posts def teardown # need to do this to work with the :if Proc tests. Post.acts_as_indexed :fields => [:title, :body] destroy_index end def test_addition iterations = 200 puts "Record addition (x #{ iterations })" puts Benchmark.measure { iterations.times do posts(:wikipedia_article_1).dup.save end } end end
Version data entries
3 entries across 3 versions & 1 rubygems