Performance efficiency
Concept status: approved by the repository user on 2026-11-11. Approval covers this local meaning and its stated limits. Mappings, lifecycle assessments, TDP applicability and targets retain their separate states.
Performance efficiency relates useful work to the resources consumed under stated conditions. Define what counts as useful work and which resources the comparison covers before interpreting a ratio. The examples below use synthetic G01 observations.
Document content and editorial review: approved on 2026-11-16 by Codex under the repository user’s delegated review. Approval covers this explanation and its stated evidence limits; semantic, mapping, lifecycle and target states remain independent.
Conceptual overview
%%{init: {'theme':'base','fontFamily':'Arial, sans-serif','themeVariables':{'lineColor':'#8792a2','textColor':'#f8fafc','nodeTextColor':'#f8fafc','primaryTextColor':'#f8fafc','arrowheadColor':'#8792a2','dropShadow':'none','useGradient':false,'edgeLabelBackground':'#252b36','fontFamily':'Arial, sans-serif','fontSize':'16px'}}}%%
flowchart TD
accTitle: Compare useful work and resource cost without dropping correctness
accDescr: Equivalent baseline and treatment workloads supply useful-work and resource evidence. Correctness can reject an apparently efficient treatment.
B["Baseline: same workload, no cache"]:::context -->|account for| M["Correct reads and CPU-seconds"]:::measure
T["Treatment: same workload, cache"]:::technique -->|account for| M
M -->|compare ratio and memory cost| E["Performance efficiency: approved local meaning"]:::quality
C["Correctness check: stale results fail"]:::context -->|constrains acceptance of| E
classDef context fill:#343c4b,color:#f8fafc,stroke:#8792a2,stroke-width:2px
classDef quality fill:#24452a,color:#f8fafc,stroke:#8792a2,stroke-width:2px
classDef measure fill:#503824,color:#f8fafc,stroke:#8792a2,stroke-width:2px
classDef technique fill:#4b3049,color:#f8fafc,stroke:#8792a2,stroke-width:2pxText equivalent: G01-E compares a no-cache baseline and cache treatment under equivalent workloads. Correct reads and CPU time support a ratio, alongside memory cost and a correctness check. These arrows describe a controlled comparison, not semantic parenthood.
Provenance: editorial synthesis of this approved local concept and the linked synthetic G01 example. No backend investigation, approved target or framework hierarchy is established. The independent lifecycle assessment remains below.
Definition and status
The relationship between performance achieved and resources used under stated conditions. The repository user approved this local definition on 2026-11-11; it is not a TDP requirement or a quotation of ISO. Applicability and targets are unapproved. Performance and performance efficiency remain distinct pending a scoped mapping.
Example: consumption needs a useful-work count. In synthetic G01-E, useful work means correct, authorized reads. Arrivals and apparently successful HTTP responses can include failed work. Resource utilization describes consumption; relating that consumption to correct completions answers the efficiency question. Keep errors in their separate report.
Applicability and mappings
What useful work will be compared with which resources? Keep the workload and accounting boundary comparable, and record completed work alongside consumption before judging efficiency. See the scenario and measures and technical assessment. ISO/IEC 25010:2023 is published, but its full definitions were not consulted; secondary labels do not establish an ISO definition or complete taxonomy. Q42 tags overlap and do not establish an ISO hierarchy. All mappings are proposals unless explicitly supported by their sources.
The controlled comparison replays identical read traces and recorded updates under equivalent conditions. It fixes configuration and accounting, includes cache warming, and requires repeated trials. Its synthetic rows illustrate individual holds; they supply no statistical evidence or measured TDP result.
Example: the accounting boundary limits the saving. G01-E’s CPU and memory counters cover the service, including its cache. Dependency resources fall outside that boundary and need separate reporting. A lower service CPU cost per correct read establishes neither lower total resource cost nor a monetary saving. See the comparison boundary.
Worked use and nearby concepts
Example: CPU cost per correct read. In synthetic G01-E, baseline and treatment each complete 29,850 correct reads during equivalent 600 s holds. CPU cost per read is 1,080 / 29,850 = approximately 0.03618 CPU-s/read for the baseline and 648 / 29,850 = approximately 0.02171 CPU-s/read for the treatment. Using the unrounded ratios, 1 - (648 / 29,850) / (1,080 / 29,850) = 40% lower CPU cost per correct read. The inverse measure, correct reads per CPU-second, rises from 27.6 to 46.1; its direction and units differ. A lower cost ratio does not waive the scenario’s timing, correctness or resource criteria.
Example: lower CPU has a memory trade-off. G01-E’s synthetic peak service memory rises from 0.8 to 1.2 GiB: 0.4 GiB, or 0.4 / 0.8 = 50%. Both peaks meet the illustrative below-2-GiB limit. A peak measures neither average nor accumulated memory use. CPU and memory retain separate units and criteria; these observations supply no combined resource score. See the worked trade-off.
Example: a favorable ratio can still fail acceptance. The synthetic TTL-only alternative consumes 600 CPU-s but returns 120 stale responses. Those responses belong in errors and are excluded from its 29,730 correct reads. Its 270 / 30,000 = 0.90% error fraction meets G01’s illustrative under-1% criterion, but fails G01-E’s additional zero-stale criterion. The example’s freshness rule requires reads dispatched after an acknowledged update to see that version or newer. This rule is unapproved for TDP; lower CPU does not authorize weakening it within the comparison.
Performance evaluates the scenario’s acceptance criteria together; it does not require a work-to-resource ratio. Time behaviour describes response and completion timing. Resource utilization describes consumption, while efficiency relates that consumption to useful work under comparable conditions. These approved local meanings establish no semantic equivalence or framework hierarchy.
Example: evaluating during development. Running G01-E before release would compare the service’s useful work and resource consumption in a test environment. It would not measure developer productivity or confirm the proposed lifecycle assignments. See the lifecycle explanation.
Lifecycle assessment
assessed; proposal. Assignment: runtime, development-time.
Running services consume resources to deliver work; development compares the cost of candidate designs. Sources: sei.