Skip to content

feat: add performance optimization pipeline#443

Merged
devEunicee merged 1 commit into
devEunicee:mainfrom
ocheeluma:feat/355-performance-optimization-pipeline
Jun 27, 2026
Merged

feat: add performance optimization pipeline#443
devEunicee merged 1 commit into
devEunicee:mainfrom
ocheeluma:feat/355-performance-optimization-pipeline

Conversation

@ocheeluma

Copy link
Copy Markdown
Contributor

Summary

Implements automatic performance testing and regression detection in CI/CD, resolving #355.

Changes

  • .github/workflows/performance.yml — new workflow with:
    • Benchmark regression via cargo-criterion + github-action-benchmark (fails at >120% regression, posts PR comment)
    • WASM bundle size check with per-branch baseline caching (fails if >100 KB or increases by >5 KB)
    • API response-time checks with configurable threshold (default 200 ms median)
    • Compile-time profiling with cargo build --timings, artifact uploaded for 14 days
  • api/scripts/perf-test.js — Node script measuring endpoint latency over 20 iterations
  • docs/performance-pipeline.md — documents thresholds, regression policy, and local usage

Acceptance Criteria

  • Performance benchmarking (cargo-criterion)
  • Regression detection (github-action-benchmark baseline comparison)
  • Build failure on regression
  • Bundle size analysis (WASM size + delta check)
  • API response time tracking
  • Memory/CPU profiling (cargo --timings for compile; criterion for runtime)
  • Optimization suggestions (PR comments from benchmark-action)

Closes #355

- Add performance.yml workflow: benchmarks (cargo-criterion), WASM
  bundle size with baseline regression check, API response-time test,
  and compile-time profiling via cargo --timings
- Fail PR on benchmark regression >120%, WASM >100KB or +5KB delta,
  API median >200ms
- Add api/scripts/perf-test.js for local and CI API latency checks
- Add docs/performance-pipeline.md documenting thresholds and usage

Closes devEunicee#355
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@ocheeluma Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@devEunicee devEunicee merged commit eb8a01a into devEunicee:main Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#355 - Build Performance Optimization Pipeline

2 participants