Module: Actor::TestFixtures::ParallelIteration::Defaults
- Defined in:
- lib/actor/test_fixtures/parallel_iteration.rb
Class Method Summary collapse
Class Method Details
.iteration_count ⇒ Object
121 122 123 124 125 126 127 128 129 |
# File 'lib/actor/test_fixtures/parallel_iteration.rb', line 121 def self.iteration_count if ENV['STRESS_TEST'] == 'high' 10_000 elsif ENV['STRESS_TEST'] == 'low' 2_500 else 100 end end |
.thread_count ⇒ Object
131 132 133 134 135 136 137 138 139 |
# File 'lib/actor/test_fixtures/parallel_iteration.rb', line 131 def self.thread_count if ENV['STRESS_TEST'] == 'high' 100 elsif ENV['STRESS_TEST'] == 'low' 25 else 2 end end |