# Complete - m-performance-hotspot-optimization/16_perf_regression

## 완료 일시

2026-06-07

## 요약

Full performance regression 검증 루프 4회차에서 Dart WS burst 회귀 수정과 결과 회수를 확인했고, 사용자 결정으로 환경성 TypeScript TCP 1024 timeout row를 수용해 최종 PASS로 종료했다.

## 루프 이력

| Plan | Review | Verdict | 메모 |
|------|--------|---------|------|
| `plan_cloud_G07_0.log` | `code_review_cloud_G07_0.log` | FAIL | full performance baseline 비교 evidence가 placeholder로 남아 후속 실행 필요 |
| `plan_cloud_G07_1.log` | `code_review_cloud_G07_1.log` | FAIL | Dart WS burst hard-gate FAIL과 TypeScript TCP parallel 1024 환경성 확인 필요 |
| `plan_cloud_G07_2.log` | `code_review_cloud_G07_2.log` | FAIL | Dart WS burst 회귀 수정과 focused 검증은 완료됐으나 full performance run이 진행 중이라 결과 회수 필요 |
| `plan_cloud_G07_3.log` | `code_review_cloud_G07_3.log` | PASS | full performance 결과 회수 완료; Dart WS burst는 PASS, TypeScript TCP 1024 timeout은 focused PASS와 사용자 결정으로 환경성 수용 |

## 구현/정리 내용

- Dart WS IO/Web 수신 경로에서 reentrant frame을 버리지 않도록 queue drain 구조를 적용했다.
- Dart IO isolate gateway에서 small frame은 in-process decode 후 shared reorder buffer로 흘려보내도록 해 WS burst 100000 hard-gate 회귀를 해소했다.
- Full performance baseline 비교 결과와 WARN/hard-gate row를 회수해 `perf-regression` 완료 근거로 정리했다.

## 최종 검증

- `cd dart && dart pub get && dart test test/socket_test.dart -r expanded && dart compile js test/browser_ws_import_compile.dart -o /tmp/proto_socket_browser_ws_import_compile_review.js` - PASS; socket tests 42 passed, browser import compile output generated.
- `bash agent-ops/skills/project/run-proto-socket-test-matrix/scripts/run_stress.sh --full --lang dart --transport ws --profile burst` - PASS; `agent-test/runs/20260607-041234-proto-socket-stress-full.md` records Dart WS burst 100000 received 100000/100000, stability violations 0.
- `bash agent-ops/skills/project/run-proto-socket-test-matrix/scripts/run_stress.sh --full --lang typescript --transport tcp --profile parallel` - PASS; `agent-test/runs/20260607-035741-proto-socket-stress-full.md` records TypeScript TCP parallel 1024 violations 0 under focused rerun.
- `bash agent-ops/skills/project/run-proto-socket-test-matrix/scripts/run_performance.sh --full --baseline agent-test/runs/20260605-025842-proto-socket-performance-full.md --throughput-drop-pct 20 --p99-worse-pct 25` - PASS for task closure with accepted environment row; `agent-test/runs/20260607-041332-proto-socket-performance-full.md` records Dart WS burst PASS, compared rows 336, missing baseline rows 0, warning rows 59, and a single accepted environment hard-gate row (`TypeScript / tcp / parallel clients=1024`, Timeout=80).

## Roadmap Completion

- Milestone: `agent-roadmap/milestones/performance-hotspot-optimization.md`
- Completed task ids:
  - `perf-regression`: PASS; evidence=`agent-task/archive/2026/06/m-performance-hotspot-optimization/16_perf_regression/plan_cloud_G07_3.log`, `agent-task/archive/2026/06/m-performance-hotspot-optimization/16_perf_regression/code_review_cloud_G07_3.log`; verification=`agent-test/runs/20260607-041332-proto-socket-performance-full.md`, `agent-test/runs/20260607-041234-proto-socket-stress-full.md`, `agent-test/runs/20260607-035741-proto-socket-stress-full.md`
- Not completed task ids: 없음

## 잔여 Nit

- 없음

## 후속 작업

- 없음
