speed up cukes by deferring GC
-> https://makandracards.com/makandra/950-speed-up-rspec-by-deferring-garbage-collection this speeds up tests from 9min 47sec to 9min 16sec on my machine (6% improvement)
This commit is contained in:
parent
4051651737
commit
90387e83f8
1 changed files with 9 additions and 0 deletions
|
|
@ -100,3 +100,12 @@ Spork.each_run do
|
||||||
CapybaraSettings.instance.restore
|
CapybaraSettings.instance.restore
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# https://makandracards.com/makandra/950-speed-up-rspec-by-deferring-garbage-collection
|
||||||
|
require File.join(File.dirname(__FILE__), "..", "..", "spec", "support", "deferred_garbage_collection")
|
||||||
|
Before do
|
||||||
|
DeferredGarbageCollection.start
|
||||||
|
end
|
||||||
|
After do
|
||||||
|
DeferredGarbageCollection.reconsider
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue