```typescript // Simple profiling const timers = new Map<string, number>() export function startTimer(name: string) { timers.set(name, Date.now()) } export function endTimer(name: string) { const start = timers.get(name) if (!start) return console.log(`${name}: ${Date.now() - start}ms`) timers.delete(name) } // Usage startTimer('db-query') const users = await db.query('SELECT * FROM users') endTimer('db-query') ``` ```sql -- Use EXPLAIN ANALYZE EXPLAIN AN
Scanned 9/7/2026
Install to Claude Code
npx -y skills add modbender/skill-library-mcp --skill performance --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Performance?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-performance)More formats (shields.io, HTML) on the badges page.
# Performance Engineering
## Bottleneck Detection
```typescript
// Simple profiling
const timers = new Map<string, number>()
export function startTimer(name: string) {
timers.set(name, Date.now())
}
export function endTimer(name: string) {
const start = timers.get(name)
if (!start) return
console.log(`${name}: ${Date.now() - start}ms`)
timers.delete(name)
}
// Usage
startTimer('db-query')
const users = await db.query('SELECT * FROM users')
endTimer('db-query')
```
## Query Optimization
```sql
-- Use EXPLAIN ANALYZE
EXPLAIN ANALYZE SELECT * FROM users WHERE email = 'test@example.com';
-- Add indexes
CREATE INDEX idx_users_email ON users(email);
CREATE INDEX idx_orders_user_id ON orders(user_id, created_at DESC);
```
## Caching Strategy
| Data Type | TTL | Strategy |
|-----------|-----|----------|
| User session | 24h | Redis |
| Config | 1h | Memory |
| Product catalog | 1h | Redis + CDN |
| API responses | 1min | Cache-aside |
## Checklist
- [ ] Profile critical paths
- [ ] Optimize database queries
- [ ] Add appropriate indexes
- [ ] Implement caching
- [ ] Set up load testing
- [ ] Monitor Core Web Vitals (frontend)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
MySQL development best practices for schema design, query optimization, and database administration
Spring Boot中的JPA/Hibernate实体设计、关系、查询优化、事务、审计、索引、分页和连接池模式。
ClickHouse数据库模式、查询优化、分析和数据工程最佳实践,适用于高性能分析工作负载。
基于Supabase最佳实践的PostgreSQL数据库模式,用于查询优化、架构设计、索引和安全。
Unify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Memory Backend).