mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
So, I got annoyed that our test suite was taking forever to run: real 2m13.443s user 1m32.630s sys 0m3.748s Some quick profiling determined that the test suite is spending all of its time loading the fixtures files (zephyr/fixtures/messages.json) that it loads for each test case (3s to load that for each test case). To improve this situation, I cut out from the test database used by the test suite most of the users, subscriptions, etc. that aren't being used directly by the test cases. The impact is a quite significant speedup: real 0m15.176s user 0m9.161s sys 0m0.508s We're still spending over a quarter of a second per test, which isn't great -- but this is at least no longer unbearable. This commit doesn't make any changes to the populate_db output if you don't pass the new --test-suite option. (imported from commit 2334ba5399b33edab3d29ff269fde4ea77ccd48e)
37 KiB
37 KiB