diff --git a/benchmark/cool_id_benchmark.rb b/benchmark/cool_id_benchmark.rb index 2443b52..f66ca38 100644 --- a/benchmark/cool_id_benchmark.rb +++ b/benchmark/cool_id_benchmark.rb @@ -152,7 +152,7 @@ def clean_up_data iterations = ARGV[1] ? ARGV[1].to_i : [10_000, sample_size].min # Ensure iterations is not larger than sample size and at least 1 -iterations = [[iterations, sample_size].min, 1].max +iterations = iterations.clamp(1, sample_size) # Main execution clean_up_data