Stub service ping data for performance improvements
What does this MR do and why?
Related #414579 (closed)
In CI pipeline test takes 72.88 seconds and it executes 4857 queries see #414579 (closed)
Before
Finished in 32.12 seconds (files took 12.57 seconds to load)
1 example, 0 failures
[TEST PROF INFO] Time spent in factories: 00:01.163 (3.42% of total time)
[TEST PROF INFO] Factories usage
Total: 12
Total top-level: 6
Total time: 00:01.163 (out of 00:41.004)
Total uniq factories: 8
total top-level total time time per call top-level time name
2 2 0.0136s 0.0068s 0.0136s license
2 2 0.5906s 0.2953s 0.5906s project
2 0 0.1172s 0.0586s 0.0000s namespace
2 0 0.0825s 0.0412s 0.0000s user
1 0 0.0038s 0.0038s 0.0000s namespace_ci_cd_settings
1 1 0.4449s 0.4449s 0.4449s admin
1 1 0.1148s 0.1148s 0.1148s group
1 0 0.0049s 0.0049s 0.0000s namespace_settings
After
Finished in 8.65 seconds (files took 12.75 seconds to load)
2 examples, 0 failures
[TEST PROF INFO] Time spent in factories: 00:00.709 (6.47% of total time)
[TEST PROF INFO] Factories usage
Total: 4
Total top-level: 4
Total time: 00:00.709 (out of 00:18.125)
Total uniq factories: 2
total top-level total time time per call top-level time name
2 2 0.0147s 0.0073s 0.0147s license
2 2 0.6946s 0.3473s 0.6946s admin
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alina Mihaila