SCOPE: Performance Testing for Serverless Computing

Jinfeng Wen, Zhenpeng Chen, Jianshu Zhao, Federica Sarro, Haodi Ping, Ying Zhang, Shangguang Wang, Xuanzhe Liu

TL;DR

Serverless computing's dynamic nature makes traditional performance testing methods ineffective. This paper introduces SCOPE, a novel, fine-grained performance testing approach specifically designed for serverless functions. SCOPE achieves significantly higher accuracy and reliability by employing accuracy and consistency checks, outperforming existing techniques by over 30 percentage points.

What Problem Does This Paper Address?

Serverless computing, where developers deploy code as functions triggered by events, has become a mainstream paradigm. However, accurately measuring the performance (specifically, end-to-end response latency) of these functions is challenging. This difficulty arises from the highly dynamic and multi-tenant nature of serverless platforms, leading to performance fluctuations even for identical runs. Existing performance testing techniques, often designed for traditional cloud applications with more stable environments, struggle to capture these nuances. They tend to rely on fixed repetition counts or stability assessments that are too coarse-grained for the rapid, event-driven nature of serverless functions, leading to inaccurate or unreliable performance evaluations.

Methods

The core of SCOPE is a novel stopping criterion that determines when sufficient performance data has been collected for a serverless function. This criterion is based on two key checks:

  • Accuracy Check: This check uses non-parametric confidence intervals (CIs) to assess if the performance results are accurate. It verifies if the CIs for key percentiles (25th, 50th, and 75th) fall within a small error margin of the observed true performance. This approach is chosen because serverless function performance often follows non-normal distributions, making non-parametric methods more robust.
  • Consistency Check: This check ensures that the performance results from the current test set are consistent with those from previous runs. It verifies if both the current and previous performance data sets meet the accuracy criteria.

SCOPE offers three implementations for calculating these non-parametric CIs, providing flexibility to users. The approach is designed to be fine-grained, adapting the number of repetitions needed for each function individually, rather than using a fixed number for all.

Datasets

The paper evaluates SCOPE using a dataset of 65 serverless functions sourced from peer-reviewed papers published between 2014 and 2022. This dataset is described as representative, covering 25 distinct task categories (e.g., image processing, machine learning, natural language processing) and including functions from popular benchmarks and platforms like AWS Lambda and Google Cloud Functions. The authors also created additional datasets for specific scenarios, such as mixed cold/warm starts, multi-function applications, and varying input conditions.

Key Insights and Ideas

  • Serverless demands a tailored approach: Traditional performance testing methods are fundamentally ill-suited for serverless computing due to its inherent dynamism and performance variability.
  • Fine-grained analysis is crucial: A one-size-fits-all approach to repetitions is inefficient and inaccurate. SCOPE's ability to determine function-specific repetition needs is a key differentiator.
  • Accuracy and Consistency are paramount: SCOPE's novel stopping criterion, combining accuracy and consistency checks, is the foundation of its superior performance.
  • Non-parametric methods are essential: Given the non-normal distribution of serverless performance data, non-parametric confidence intervals are a robust choice for analysis.
  • SCOPE is flexible and scalable: The approach can be integrated as an external tool and offers different CI calculation methods, catering to various user needs.

Key Results

  • High Accuracy: SCOPE achieved an average accuracy of 97.25% across 65 serverless functions, outperforming the best baseline (Metior) by 33.83 percentage points.
  • Superior Reliability: SCOPE significantly improved the reliability of performance results across various percentiles (25th, 50th, 75th, 90th) compared to baselines. For example, SCOPE 1 provided reliable 50th percentile performance for 93.08% of functions, compared to Metior's 22.31%.
  • Effectiveness Across Scenarios: SCOPE demonstrated effectiveness in various situations, including mixed cold/warm starts, multi-function applications, different trigger types, bursty workloads, and across different cloud platforms (AWS, Azure, Alibaba, Google Cloud).
  • Efficiency: SCOPE's adaptive repetition strategy leads to cost efficiency by avoiding unnecessary runs, as shown in RQ3 where it required significantly fewer repetitions than fixed strategies.

Limitations and Future Work

  • Limitations:
    • SCOPE currently employs a non-parametric approach and does not delve into specific distribution characteristics or pattern identification, which could potentially enhance performance assessment depth.
  • While SCOPE performs well, incorporating specific distribution characteristics could further improve its evaluation effectiveness.
  • Future Work:
    • Extend SCOPE to a wider variety of serverless functions and applications across different providers.
  • Conduct evaluations in diverse real-world scenarios, including hybrid cold-warm start environments, varied input types, and different event triggers.
  • Integrate SCOPE with monitoring and profiling tools to gain deeper insights into runtime behavior and enhance diagnostic capabilities.
  • Develop SCOPE into a serverless API for easier accessibility and customizable testing parameters.

Summary updated

BibTeX
@article{wen2025scope,
  author = {Jinfeng Wen and Zhenpeng Chen and Jianshu Zhao and Federica Sarro and Haodi Ping and Ying Zhang and Shangguang Wang and Xuanzhe Liu},
  title = {{SCOPE: Performance Testing for Serverless Computing}},
  journal = {ACM Transactions on Software Engineering and Methodology},
  year = {2025},
  url = {https://openreview.net/forum?id=PNWgI2XjEI},
}
Figure