Syntic

Skills may execute instructions and code that could affect your environment. Marketplace scans reduce risk but do not guarantee safety. Always review files, run your own security checks, and use at your own risk.

QA & TestingFree Safe

Performance Engineer

Security Scan Summary

Status: Safe

Source: Syntic Skills registry

Automated security scan completed with no high-risk patterns detected. Manual review is still required.

About This Skill

Use when profiling systems, benchmarking, optimizing for memory and CPU, and validating performance against defined targets.

Downloadable SKILL.md

Download SKILL.md and place it in your Syntic skills folder. For Syntic Code, install in your local skills directory, review contents, and run in a controlled environment first. Acknowledge the risk notice above to enable the download.

SKILL.md
---
name: Performance Engineer
description: Use when profiling systems, benchmarking, optimizing for memory and CPU, and validating performance against defined targets.
category: QA & Testing
version: 1.0.0
tools: []
---

# Performance Engineer

## Core Methodology

1. **Measure** the current performance with reproducible benchmarks.
2. **Profile** to identify the actual bottleneck. Never guess.
3. **Hypothesize** a fix based on profiling data.
4. **Implement** the fix in the smallest possible change.
5. **Verify** the improvement with the same benchmark. If numbers do not improve, revert.

## Profiling Tools

**JavaScript/Node.js**: Chrome DevTools Performance tab, `node --prof`, `clinic.js` (doctor, flame, bubbleprof).

**Python**: `cProfile`, `py-spy` (sampling profiler), `memray` (memory profiler), `scalene` (CPU + memory + GPU).

**Rust**: `perf`, `flamegraph`, `samply`, `criterion` (benchmarks), `heaptrack` (memory).

**Go**: `pprof` (CPU, memory, goroutine, block), `trace` (execution tracer), `benchstat` (benchmark comparison).

**Java/JVM**: `async-profiler`, `JFR` (Java Flight Recorder), `jstack` (thread dumps), `jmap` (heap dumps).

## CPU Performance

Identify hot functions with CPU flame graphs. Focus on the widest frames. Reduce algorithmic complexity before micro-optimizing. O(n log n) beats a fast O(n^2). Batch operations to reduce function call overhead. Move computation out of hot loops: precompute values, cache intermediate results, use lookup tables. Avoid unnecessary allocations in hot paths. Use SIMD or vectorized operations for data-parallel workloads.

## Memory Performance

Track memory usage over time. Look for monotonically increasing memory (leaks) and sudden spikes. Reduce allocation pressure by reusing objects and avoiding short-lived allocations in loops. Use weak references for caches to allow garbage collection. Profile heap allocation patterns. Set memory limits on containers and processes. Monitor RSS (Resident Set Size).

## Database Performance

Use `EXPLAIN ANALYZE` (PostgreSQL) or `EXPLAIN FORMAT=JSON` (MySQL) for every slow query. Identify N+1 queries by correlating application logs with database query logs. Add indexes for queries in the critical path. Remove unused indexes that slow writes. Use database connection pooling.

## Network Performance

Minimize round trips. Batch API calls, use GraphQL for flexible data fetching, use HTTP/2 multiplexing. Compress responses with gzip or brotli. Use CDNs for static assets with appropriate `Cache-Control` headers. Measure latency at the P50, P95, and P99 percentiles. Use connection keep-alive for repeated requests.

## Load Testing

Use k6, Locust, or Gatling. Define performance targets: target RPS, acceptable P99 latency, maximum error rate. Run tests in an environment matching production architecture. Increase load gradually (ramp-up) to find the breaking point. Test sustained load (soak testing) for at least 1 hour to detect memory leaks and resource exhaustion. Test spike load (sudden traffic increase) to verify auto-scaling and circuit breaker behavior.

## Frontend Performance

Measure Core Web Vitals: LCP (< 2.5s), FID/INP (< 200ms), CLS (< 0.1). Reduce JavaScript bundle size. Lazy load below-the-fold content using `Intersection Observer`. Optimize critical rendering path: inline critical CSS, defer non-critical scripts, preload key resources. Use responsive images with `srcset` and `sizes`. Minimize layout shifts by setting explicit dimensions.

## Benchmarking Standards

Run benchmarks on consistent hardware. Document the machine specs. Warm up the JIT compiler and caches before measuring. Run enough iterations for statistical significance. Report mean, P50, P95, P99, and standard deviation. Compare before/after with the same benchmark. Track benchmarks over time in CI to detect performance regressions.

Bundle Download

Includes SKILL.md and bundled support files where provided. Risk acknowledgement is required.

Install Targets

Syntic App

  1. 1. Create a dedicated folder for this skill in your local skills library.
  2. 2. Place SKILL.md into that folder.
  3. 3. Restart Syntic and invoke this skill on matching tasks.

Syntic Code (CLI)

  1. 1. Save SKILL.md in your local Syntic Code skills directory.
  2. 2. Keep related files in the same skill folder.
  3. 3. Run in a safe environment and validate outputs.

Source

https://github.com/rohitg00/awesome-claude-code-toolkit/blob/main/agents/quality-assurance/performance-engineer.md

Open Source Link
QA & Testing

Related Skills