SuperFlow: Performance Testing for Serverless Computing

Jinfeng Wen, Zhenpeng Chen, Federica Sarro, Xuanzhe Liu · DOI

Abstract

Performance testing in serverless computing (Function-as-a-Service) is challenged by extreme latency volatility due to multi-tenancy and dynamic resource management. Traditional fixed-repetition testing often fails to capture accurate performance profiles or results in excessive costs. This paper introduces SCOPE (Serverless Computing-Oriented Performance tEsting), a framework that utilizes non-parametric accuracy and consistency checks to automate the stopping criterion for performance tests. SCOPE achieves a mean accuracy of 97.25% in measuring function latency, outperforming state-of-the-art tools by over 33 percentage points while reducing the number of required runs by 77.16%.

Introduction

In the serverless paradigm, developers offload infrastructure management to cloud providers, focusing solely on code. However, this "black box" environment introduces significant noise. Factors such as cold starts, multi-tenancy, and heterogeneous hardware cause execution latencies to fluctuate wildly, making performance benchmarking difficult.

The standard serverless lifecycle involving implementation, deployment, and event-driven execution.

Standard testing strategies typically rely on a fixed number of repetitions (e.g., 10 or 100 runs). This approach is often inefficient: it may be insufficient for highly volatile functions or wastefully excessive for stable ones. Furthermore, existing tools designed for Infrastructure-as-a-Service (IaaS) assume long-lived tasks and normal data distributions, which do not apply to the short-lived, non-normally distributed nature of serverless functions.

Methodology: The SCOPE Framework

To address these challenges, the authors propose SCOPE, which replaces arbitrary repetition counts with a rigorous, automated stopping criterion. The framework operates through a two-stage validation process designed to handle the non-Gaussian distributions typical of serverless latency.

The SCOPE workflow featuring iterative accuracy and consistency checks to determine the optimal stopping point.

1. Accuracy Check

SCOPE calculates non-parametric confidence intervals (CIs) for the 25th, 50th, and 75th percentiles of the collected performance data. A test is deemed "accurate" only when these intervals fall within a user-defined error margin (e.g., 1%). By using non-parametric methods, SCOPE remains robust against the skewed latency curves common in cloud environments.

2. Consistency Check

To prevent premature termination due to temporary stability (the "fluke" factor), SCOPE compares the current result set with the previous run interval. The test only stops if both the current and previous sets independently satisfy the accuracy requirements. This ensures that the captured performance profile is stable over time.

Evaluation and Results

The framework was evaluated using a dataset of 65 serverless functions across 25 categories, including image processing and mathematical operations. Tests were conducted on major platforms including AWS Lambda, Google Cloud Functions, Azure, and Alibaba Cloud.

Key Findings

  • Superior Accuracy: SCOPE achieved a mean accuracy of 97.25%, a 33.83 percentage point improvement over the Metior baseline.
  • Cost Efficiency: By automatically finding the "sweet spot" for repetitions, SCOPE reduced the total number of required runs by 77.16% compared to a fixed strategy of 500 repetitions.
  • Reliability: The framework provided reliable profiles for over 90% of studied functions across all tested percentiles.
  • Versatility: SCOPE remained effective across various triggers (HTTP, S3, SQS) and complex, multi-function applications.

Conclusion

SCOPE demonstrates that serverless performance testing requires specialized statistical approaches that account for non-normal distributions and temporal volatility. By moving away from fixed-repetition counts toward a data-driven stopping criterion, developers can achieve higher accuracy at a fraction of the cost. Future work will focus on integrating SCOPE into CI/CD pipelines as a public API to help developers maintain service-level objectives (SLOs) automatically.

Summary updated

BibTeX
@article{wen2025superflow,
  author = {Jinfeng Wen and Zhenpeng Chen and Federica Sarro and Xuanzhe Liu},
  title = {{SuperFlow: Performance Testing for Serverless Computing}},
  journal = {ACM Transactions on Software Engineering and Methodology},
  year = {2025},
  url = {https://openreview.net/forum?id=PNWgI2XjEI},
}
Figure