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:
Yorick Peterse 2015-10-29 17:53:56 +01:00
parent a9df714764
commit 6d3068bec3
1 changed files with 2 additions and 2 deletions

View File

@ -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