Skip to content

Add performance benchmark suite and scan profiling output #44

@ColumbusLabs

Description

@ColumbusLabs

Goal

Keep DebtLens fast and predictable as more rules and project shapes are added.

Difficulty

Medium

Area

Performance

Suggested approach

  • Add benchmark fixtures for small, medium, and large synthetic projects.
  • Track total scan time and per-rule timing in an opt-in mode such as --profile.
  • Warn when a detector hits configured caps or dominates runtime.
  • Document expected performance budgets and how to run benchmarks locally.

Acceptance criteria

  • --profile reports per-rule timing without changing findings.
  • Benchmarks are deterministic enough for local comparison.
  • CI can run a lightweight benchmark smoke without being flaky.

Suggested test command

npm test -- tests/core/scan.test.ts tests/cli/scan.test.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: performanceRuntime performance and profilingdifficulty: mediumModerate task with multiple files or design choicesenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions