ref: master
test/support/performance_helper.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
module PerformanceHelper # Testing blog page display. It should not present a linear increase in time # needed to display a blog page with the increase in number of posts. # # GOOD BAD # # ^ ^ / # | | / # | _____ | / # | / | / # | / | / # |/ |/ # +---------> +---------> # 0 50 100 0 50 100 # # On the travis/gitlab CI this can vary with servers' IO load, so # we soften to avoid failures # NON_LINEAR_FACTOR = unless ENV['CI'] then 1.8 else 0 end end |