Optimizing Javascript Performance

Audits measured JavaScript and TypeScript performance.

socketdev 5e288b9 883 B Updated

File contents

Optimizing JavaScript Performance

Profile the deployed Node/browser version after warmup. TypeScript types are erased, so measure the emitted JavaScript, engine allocation/GC behavior, and host-boundary cost.

  1. Read JavaScript/TypeScript performance audit.
  2. Scan for per-item allocation, unstable record shapes, polymorphic call sites, callback or Promise churn, intermediate arrays/strings, regex/UTF work, and per-item native/Wasm calls.
  3. Keep V8-friendly layouts as readable data design, not reliance on undocumented engine tiers or production-only flags.
  4. Re-run corpus, Unicode/error, startup, heap, GC, and tail-latency measurements on every supported Node/V8 line affected.

socketdev/socket-btm/tree/main/.claude/skills/fleet/optimizing-javascript-performance commit 5e288b9719

Frequently asked questions

npx skillmds@latest add socketdev/optimizing-javascript-performance