Adjusted ips/sec for find_by_any_email benchmarks
While these benchmarks run at roughly 1500 i/sec setting the threshold to 1000 leaves some room for deviations (e.g. due to different DB setups).
This commit is contained in:
parent
a9df714764
commit
6d3068bec3
|
|
@ -48,7 +48,7 @@ describe User, benchmark: true do
|
|||
|
||||
benchmark_subject { User.find_by_any_email(email) }
|
||||
|
||||
it { is_expected.to iterate_per_second(5000) }
|
||||
it { is_expected.to iterate_per_second(1000) }
|
||||
end
|
||||
|
||||
describe 'using a user with multiple Email addresses' do
|
||||
|
|
@ -62,7 +62,7 @@ describe User, benchmark: true do
|
|||
end
|
||||
end
|
||||
|
||||
it { is_expected.to iterate_per_second(5000) }
|
||||
it { is_expected.to iterate_per_second(1000) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue