Skip to content

[performance] Regression in BenchmarkFindIncludesInContent: +51.4% slower #26995

@github-actions

Description

@github-actions

📊 Performance Regression Detected

Benchmark: BenchmarkFindIncludesInContent

Current Performance: 42,474 ns/op (42.47μs)
Historical Average: 28,049 ns/op (28.05μs)
Change: +51.4% slower
Historical Data Points: 7

📈 Detailed Performance Metrics

Performance Comparison

Metric Current Historical Avg Change
ns/op 42,474 28,049 +51.4%
B/op 14,557
allocs/op 52

Baseline Targets

  • CLI helper functions should remain in the microsecond range
  • Simple workflows: <100ms total

💡 Recommended Actions

  1. Review recent changes to FindIncludesInContent in pkg/cli/ or pkg/workflow/
  2. Check if include/import scanning logic was updated (regex changes, additional file traversal)
  3. Run make bench-memory to profile memory allocations
  4. Use go tool pprof to identify where the slowdown occurs
  5. Consider if new include patterns were added that increase scanning complexity
📋 Additional Context

Automatically generated by Daily CLI Performance workflow

Generated by Daily CLI Performance Agent · ● 1.1M ·

  • expires on Apr 20, 2026, 5:48 AM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions