[SERVER-43803] Add log messages to aid measurement of execution times of startup, shutdown, initiation sections of ReplSetTest and ShardingTest Created: 03/Oct/19 Updated: 29/Oct/23 Resolved: 14/Oct/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication, Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | William Schultz (Inactive) | Assignee: | William Schultz (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Repl 2019-10-21 | ||||||||
| Participants: | |||||||||
| Description |
|
To measure the success of the Faster Local Testing project (PM-1360), it will be helpful to measure the execution times of the sections of code that we are aiming to speed up inside ReplSetTest and ShardingTest before we make any improvements. This will help us know how much we improved on performance of various tests. To make this easier, we should add appropriate log messages to allow external tools/scripts to measure the durations of these functions or regions of code easily e.g. ReplSetTest.startSet, ReplSetTest.stopSet, etc. |
| Comments |
| Comment by Githook User [ 14/Oct/19 ] |
|
Author: {'name': 'William Schultz', 'username': 'will62794', 'email': 'william.schultz@mongodb.com'}Message: |
| Comment by William Schultz (Inactive) [ 03/Oct/19 ] |
|
Yes, I considered that as well. I felt like adding new log messages was simpler and more general, since it doesn't require the addition of any specific metrics tracking logic to the test fixtures. But it might not hurt to do a combination of both. |
| Comment by Judah Schvimer [ 03/Oct/19 ] |
|
We could also actually get the time at various points in the test fixture or the control tests and log the durations that parts of the tests take, to make this even easier. |