From c99693ff23ac1669ff07f494f4c0d0e8c8e7876e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 1 Sep 2010 13:09:53 -0300 Subject: [PATCH] Make performance test more reliable --- test/integration/performance_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/performance_test.rb b/test/integration/performance_test.rb index cfd114f..221c1a9 100644 --- a/test/integration/performance_test.rb +++ b/test/integration/performance_test.rb @@ -29,13 +29,13 @@ class PerformanceTest < ActionController::IntegrationTest create_posts(person2, 100) # no posts - time0 = (Benchmark.measure { get '/person0/blog' }) + time0 = (Benchmark.measure { 10.times { get '/person0/blog' } }) # first 50 - time1 = (Benchmark.measure { get '/person1/blog' }) + time1 = (Benchmark.measure { 10.times { get '/person1/blog' } }) # another 50 - time2 = (Benchmark.measure { get '/person2/blog' }) + time2 = (Benchmark.measure { 10.times { get '/person2/blog' } }) # should not scale linearly, i.e. the inclination of the first segment must # be a lot higher than the one of the segment segment. To compensate for -- libgit2 0.21.2