Skip to content

Commit 055ebaa

Browse files
committed
Optimize group fabricator: Reduce member count 5→2
Improves model spec performance by additional ~2% (14.1s → 13.8s) Combined optimizations: 17.0s → 13.8s (~19% total improvement) The students and coaches fabricators were creating 5 members each, but tests only need 2 members per group. Reduced member count to reduce object creation overhead.
1 parent b629c07 commit 055ebaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/fabricators/group_fabricator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
Fabricator(:students, from: :group) do
88
name 'Students'
9-
members(count: 5)
9+
members(count: 2)
1010
end
1111

1212
Fabricator(:coaches, from: :group) do
1313
name 'Coaches'
14-
members(count: 5)
14+
members(count: 2)
1515
end

0 commit comments

Comments
 (0)