[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:
Depends
is depended on by SERVER-43804 Establish baseline performance metric... Closed
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: SERVER-43803 Add log messages in ReplSetTest and ShardingTest that report duration of setup and teardown procedures
Branch: master
https://github.com/mongodb/mongo/commit/83a23788c4a859083d4261c1fd89e10a970abaa6

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.

Generated at Thu Feb 08 05:04:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.