Canonical: https://botbento.com/usecases/investigating-slow-test-suites-and-profiling-code/
Format: Markdown representation of the public HTML page.

[Home](/) / [Use cases](/usecases/) / [Coding](/usecases/?category=coding)

Coding · Intermediate

# Investigating slow test suites and profiling code execution

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

[Use with BotBento ](https://app.botbento.com/?ref=usecases&utm_source=botbento.com&utm_medium=usecases&utm_campaign=investigating-slow-test-suites-and-profiling-code)Copy promptShare[Markdown](/text/usecases/investigating-slow-test-suites-and-profiling-code/index.md)

Opens BotBento. Paste the prompt into a bot; nothing is preconfigured.

- When you askRequest test performance review
- ThenProfile test execution times
- ResultProvide test optimization report

Examines project repositories and automated test results to identify the slowest test suites. The bot isolates slow assertions, uncovers redundant network or database calls, and suggests concrete refactoring steps to reduce overall test execution duration.

## Prompt to start with

BotBentoRecommended

```
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.
```

Copy

## Tools it uses

GitHubTerminalDocs

## Works with

BotBento

## Tags

- testing
- profiling
- codebase
- performance
- debugging

## Source

[harness-sdk: Build an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python & TypeScript - any model, ](https://github.com/strands-agents/harness-sdk)
GitHub · checked 2026-10-15

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

By BotBento Editorial · Added 2026-10-15 · Updated 2026-10-15 · [Suggest a correction](/contact/)

## Related use cases

-

Codingadvanced

## [Assembling Python agent execution graphs](/usecases/assembling-python-agent-execution-graphs/)

Structure modular agent routines, validate tool nodes, and run automated evaluation sets.

TerminalGitHubDocs
-

Codingintermediate

## [Automated code refactoring and test execution](/usecases/automated-code-refactoring-and-test-execution/)

Inspect repositories, apply code edits, and execute test suites from the command line

TerminalGitHub
-

Codingadvanced

## [Automated codebase repair and test verification](/usecases/automated-codebase-repair-and-test-verification/)

Diagnose test failures, apply source patches, and validate test suites in a local environment

TerminalGitHubChat
