Code Resource Efficiency Analysis
Demonstrate that code optimization targets the highest resource consumers and improves resource efficiency rather than simply adding capacity.
Evidence definition: what you need to demonstrate, why it matters and how to assess it. This is not a completed document.
Why it matters
The risk this evidence addresses
Read this first: this record exists to demonstrate that the relevant control is defined and operating — not to complete a document.
Workloads consume more compute and energy than necessary because inefficient code paths are not identified and optimized.
Synthesised from current AWS SUS03-BP03 guidance.
Profile and optimize the code paths that consume the most time or resources, validating improvements with before/after resource-efficiency measurements.
A profiling and benchmark record identifying code paths that consume the most CPU, memory, I/O, network or execution time, with optimization actions and measured before/after outcomes.
Ownership
Ownership and review
No accountable role is recorded for this record yet. These are the roles involved in producing and using it.
Consumes and reviews
Relies on this record to judge whether the relevant control is operating.
Challenge
What to ask your team
Use these when the artefact is presented to you. Each one is designed to expose evidence that exists but does not hold.
- Q01
Which code path consumes the most resources per unit of work?
- Q02
What profiler evidence supports this target?
- Q03
How much resource use dropped after the change?
- Q04
Did the optimization shift cost elsewhere?
Specification
What it must contain, and what makes it credible
Minimum expected content
- Component/code path
- Baseline profile
- CPU/memory/I/O/network usage
- Execution time
- Unit-of-work baseline
- Optimization hypothesis
- Change implemented
- Before/after benchmark
- Resource reduction
- Performance impact
- Owner
What good looks like
- Uses profiler or benchmark evidence
- Targets material hotspots
- Measures resource per unit of work
- Avoids capacity-only fixes
- Before/after results are retained
Warning signs
- Scaling infrastructure instead of profiling code
- Optimizing code with no measurable hotspot
- No before/after benchmark
- Only latency measured, not resource use
- Performance regressions not tracked
Measurement metadata expected
- CPU time per unit of work
- Memory per unit of work
- Execution time reduction
- I/O or network reduction
- Resource-cost reduction attributable to code optimization
Relationships
Where this evidence is used
Practices that expect it
Role journeys that reference it
- Not yet placed in an authored role journey. The roles that own, produce and use it are listed above.
Review cadenceReview for material performance/resource hotspots and after major code or runtime changes.