Modern container-based microservices evolve through rapid deployment cycles, but CI/CD pipelines still rarely measure energy consumption, even though prior work shows that design patterns, code smells and refactorings affect energy efficiency. We present PPTAM$η$, an automated pipeline that integrates power and energy measurement into GitLab CI for containerised API systems, coordinating load generation, container monitoring and hardware power probes to collect comparable metrics at each commit. The pipeline makes energy visible to developers, supports version comparison for test engineers and enables trend analysis for researchers. We evaluate PPTAM$η$ on a JWT-authenticated API across four commits, collecting performance and energy metrics and summarising the architecture, measurement methodology and validation.
翻译:现代基于容器的微服务通过快速部署周期不断演进,然而CI/CD流水线仍极少测量能耗,尽管已有研究表明设计模式、代码异味和重构会影响能效。本文提出PPTAM$η$——一种自动化流水线,它将功耗与能耗测量集成至GitLab CI中,面向容器化API系统,通过协调负载生成、容器监控与硬件功率探针,在每次代码提交时收集可比较的指标。该流水线使能耗对开发者可见,为测试工程师支持版本比对,并为研究者提供趋势分析能力。我们在一个采用JWT认证的API上对PPTAM$η$进行了评估,跨越四次代码提交收集性能与能耗指标,并总结了其架构、测量方法与验证过程。