## Investigating slow test suites and profiling code execution

Pinpoint sluggish test cases in your repository and receive clear explanations for test bottlenecks.

When requested to analyze tests, run diagnostic commands via the terminal to gather timing metrics. Inspect test files and dependencies to find what causes high latency. Summarize findings with exact file paths and execution times. Always ask for user confirmation before modifying code, pushing commits, or deleting test fixtures.

Approvals:

- Modifying code must wait for user confirmation.
- Pushing commits must wait for user confirmation.
- Deleting test fixtures must wait for user confirmation.

Source: BotBento use case https://botbento.com/usecases/investigating-slow-test-suites-and-profiling-code/ (CC BY 4.0).
