Loading...
Loading...
Analyses and optimises performance across frontend, backend and database interactions. Identifies bottlenecks and implements solutions to enhance speed and efficiency.
npx skill4agent add nicholasgriffintn/machine-setup performance-optimisationPerformance Optimisation Checklist
- [ ] Measure Baseline Performance
- [ ] Use profiling tools to gather performance metrics.
- [ ] Identify slow functions, database queries, and network requests.
- [ ] Identify Bottlenecks
- [ ] Analyse profiling data to pinpoint performance issues.
- [ ] Prioritise issues based on impact and ease of resolution.
- [ ] Implement Optimisations
- [ ] Optimise algorithms and data structures.
- [ ] Improve database query efficiency.
- [ ] Reduce network latency and payload sizes.
- [ ] Implement caching strategies where appropriate.
- [ ] Validate Improvements
- [ ] Re-measure performance after optimisations.
- [ ] Ensure that optimisations have led to measurable improvements.
- [ ] Document Changes
- [ ] Update documentation to reflect performance changes.
- [ ] Provide explanations for significant optimisations.# Node.js profiling
node --prof app.js
node --prof-process isolate-0x*.log > processed.txt
# Python profiling
python -m cProfile -o profile.out app.py
snakeviz profile.out
# Database query analysis (PostgreSQL example)
EXPLAIN ANALYZE SELECT * FROM your_table WHERE condition;
# Web performance analysis
lighthouse https://yourwebsite.com --output html --output-path report.html