A Streamlit-based tool for analyzing Python code performance, identifying potential bottlenecks, and providing optimization suggestions.
Upload Python files or paste code directly Detect nested loop complexities Identify inefficient string operations Analyze memory usage Profile execution time Provide optimization suggestions
- Python 3.8+
- pip
-
Clone the repository
git clone https://github.com/yourusername/performance-analyzer.git cd performance-analyzer
-
Create a virtual environment
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies
pip install -r requirements.txt
-
Run the Streamlit app
streamlit run performance_analyzer.py
- Choose between pasting code or uploading a Python file
- Click "Analyze Performance"
- Review bottlenecks, memory usage, and execution profile
- Experimental performance detection
- Primarily static code analysis
- May not catch all performance issues
Contributions are welcome! Please open an issue or submit a pull request.