TL;DR
SeBS (Serverless Benchmark Suite) is the first comprehensive, cross-provider benchmarking tool designed specifically for Function-as-a-Service (FaaS). It provides a standardized way to evaluate performance, cost, and reliability across AWS Lambda, Azure Functions, and Google Cloud Functions, revealing that while AWS currently leads in performance, the "black box" nature of serverless hides significant overheads and predictable container eviction patterns.
What Problem Does This Paper Address?
Serverless computing, or Function-as-a-Service (FaaS), has exploded in popularity because it allows developers to run code without managing infrastructure. However, for researchers and engineers, FaaS is a "black box." Cloud providers don't disclose their scheduling algorithms, hardware specs, or how they handle "cold starts" (the delay when a function is initialized).
Existing benchmarks are often ad-hoc, vendor-specific, or rely on simple microbenchmarks that don't reflect real-world workloads. This makes it nearly impossible to perform a fair "apples-to-apples" comparison between providers or to predict how a complex application will actually perform and cost in production.
Methods
The authors developed SeBS, which consists of three main pillars:
- An Abstract Platform Model: They defined a general model of FaaS (Triggers $\rightarrow$ Execution Environment $\rightarrow$ Storage) that applies to any provider.
- A Benchmark Specification: Instead of just measuring CPU speed, they selected 11 representative applications across six categories (Webapps, Multimedia, Utilities, Inference, Scientific, and Graph Processing).
- An Automated Implementation Kit: This is the "engine" of SeBS. It automatically handles the building, deployment, and invocation of functions across different clouds, ensuring reproducibility.
Crucially, SeBS introduces novel metrics like "FLOP/s per dollar" to measure cost-efficiency and uses a specialized "Invoc-Overhead" experiment to strip away network latency and measure the true internal overhead of the cloud provider's management system.
Datasets (Applications)
SeBS includes a suite of 11 diverse applications used as benchmarks:
- Webapps:
dynamic-html(template rendering),uploader(file storage). - Multimedia:
thumbnailer(image resizing),video-processing(using ffmpeg). - Utilities:
compression(zip),data-vis(DNA sequence visualization). - Inference:
image-recognition(using a pretrained ResNet-50 model). - Scientific: Graph processing tasks including
PageRank,Minimum Spanning Tree (MST), andBreadth-First Search (BFS).
These differ from previous benchmarks by including heavy dependencies (like PyTorch or ffmpeg) and varying I/O requirements, reflecting the "software glue" role functions often play.
Key Insights and Ideas
- The 380-Second Rule: On AWS Lambda, the authors discovered a surprisingly deterministic container eviction policy. Regardless of the language or memory size, AWS tends to evict half of the idle containers every 380 seconds. This allows developers to create "warm-up" strategies without paying for expensive "provisioned concurrency" features.
- The Memory-Cost Paradox: In FaaS, you pay for memory-seconds. While adding more memory often gives you a faster CPU, the authors found that for some workloads (like compression), the speedup doesn't justify the extra cost. Conversely, for ML inference, higher memory is almost always more cost-efficient because it slashes execution time.
- The "Black Box" Tax: FaaS is significantly slower than traditional Virtual Machines (IaaS). The overhead of "FaaS-ifying" a service ranges from a 50% slowdown to a 4x slowdown compared to running on a dedicated AWS EC2 instance.
- Azure's Consistency Issues: While AWS showed very predictable performance, Azure Functions exhibited high variance and "irregular performance" during concurrent executions, making it harder to use for latency-sensitive applications.
Key Results
- AWS is the Performance Leader: Across almost all benchmarks, AWS Lambda provided the lowest latency and most consistent performance.
- Cold Start Impact: Cold starts can make a function run 10x slower than a "warm" execution. This is particularly brutal for large deployment packages like those used in Machine Learning.
- Break-even Analysis: The authors calculated that for frequent invocations, traditional VMs are much cheaper. However, FaaS becomes the cost-winner for infrequent or highly bursty workloads where a VM would sit idle most of the time.
- Linear Scaling: For most providers, invocation latency scales linearly with the size of the input payload, suggesting that network transmission is the primary bottleneck for large data inputs.
Limitations and Future Work
The authors acknowledge that the "black box" nature of commercial clouds limits what can be measured. For instance, Azure's monitoring logs sometimes provided incorrect memory usage data, forcing the authors to exclude certain efficiency metrics for that provider.
Future work includes expanding SeBS to support more specialized hardware (like GPUs/TPUs in serverless) and investigating "stateful" serverless platforms, which are becoming the next frontier in cloud computing. They also hope the community will contribute more "real-world" complex workflows to the suite.
Summary updated