performance-engineering

Solid

Performance engineering for Node.js real-time systems. Covers V8 internals (hidden classes, inline caches, deoptimization), GC tuning (Scavenge/Mark-Sweep/Compact), event loop forensics (stall diagnosis, tick profiling), memory leak detection, hot path optimization, IPC throughput, worker_threads performance, SharedArrayBuffer patterns, and production profiling. Use when analyzing event loop latency, diagnosing memory growth, optimizing hot paths, profiling IPC throughput, or reviewing any code that runs on the critical data path.

AI & Automation 3 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Performance Engineering Note: This skill is Node.js-focused. The mental model (V8 internals, GC tuning, event loop forensics) applies broadly, but specific commands and profilers differ on Python/Go/Rust runtimes. ## Fail-Fast Rule If a performance metric exceeds its budget, **stop and investigate**. Never accept "it's fast enough" without numbers. Never optimize without profiling first. Never profile with small data sets and claim production readiness. ## {{PROJECT_NAME}} Performance Budgets | Metric | Budget | Current | Alert At | |--------|--------|---------|----------| | Event loop p50 | < 5ms | 1.26ms | > 10ms | | Event loop p99 | < 100ms | ~100ms | > 200ms | | Heap used | < 2GB | ~604MB | > 1.5GB | | RSS (main) | < 4GB | ~2-4GB | > 6GB | | RSS (adapter) | < 24GB | ~16-24GB | > 28GB | | IPC latency | < 50ms | ~50ms coalesce | > 100ms | | Event throughput | > 200 events/s | ~400+ events/s | < 150 events/s | ## V8 Internals That Matter ### Hidden Classes (Shapes) - Objects with same property order share hidden classes → fast property access - Adding properties in different orders creates new hidden classes → SLOW - **Pattern**: Hot-path state objects must always have the same property shape - In a `storeFastRecord()`-style function: in-place mutation preserves hidden class (good) - Creating new objects per event would thrash hidden classes (bad) ### Inline Caches (ICs) - V8 caches property lookup locations per call site - Polymorphic ICs (>4 shapes at one call si...

Details

Author
Canhada-Labs
Repository
Canhada-Labs/ceo-orchestration
Created
4 weeks ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

performance-optimizer

Identifies and resolves performance bottlenecks across frontend (Core Web Vitals, code splitting, lazy loading), backend (N+1 queries, async processing), and database (EXPLAIN ANALYZE, indexing strategies) layers. Use when the user reports slow code, latency issues, memory leaks, needs to speed up an application, or wants to benchmark and profile performance.

24 Updated today
nguyenthienthanh
AI & Automation Solid

perf-profiling

Systematic performance profiling and optimization. Use when performance issues are reported or suspected. Measure first, optimize second. Applies Pareto principle — find the 20% of code causing 80% of slowness, fix that, not the rest.

24 Updated today
nguyenthienthanh
Code & Development Listed

principle-performance

Performance engineering principles — latency vs throughput, profile-before-optimize discipline, Big-O instincts for common patterns, allocation and GC pressure, data locality and cache-friendliness, N+1 queries on a list endpoint, cache-aside and write-through invalidation, TTL sizing for hot-path endpoints, stampede prevention with single-flight. Auto-load when reviewing hot-path code, choosing data structures, designing batch or streaming pipelines, hunting allocations or GC pauses, weighing latency trade-offs, sizing TTL and picking cache invalidation, preventing cache stampede or thundering herd with single-flight on an expired hot key, detecting N+1 queries on list endpoint calls, or evaluating scalability.

3 Updated today
lugassawan