Commit 6d3068be authored by Yorick Peterse's avatar Yorick Peterse

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).
parent a9df7147
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment