NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Task Bench: A Parameterized Benchmark for Evaluating Parallel Runtime Performance

Elliott Slaughter, Wei Wu, Yuankun Fu, Legend Brandenburg, Nicolai Garcia, Wilhem Kautz, Emily Marx, Kaleb S. Morris, Wonchan Lee, Qinglei Cao, George Bosilca, Seema Mirchandaney, Sean Treichler, Patrick S. McCormick, Alex Aiken · DOI

TL;DR

This paper introduces Task Bench, a novel, parameterized benchmark framework that significantly lowers the barrier to evaluating parallel and distributed programming systems. By decoupling benchmark definitions from system implementations, it enables comprehensive comparisons across a wide range of systems and scenarios, revealing critical insights into runtime performance and overheads.

What Problem Does This Paper Address?

Evaluating and comparing the performance of parallel and distributed programming systems is a notoriously difficult task. Existing methods often rely on proxy applications or microbenchmarks, which require substantial effort to implement for each system and scenario. This makes it challenging to conduct broad, comparative studies. Furthermore, traditional metrics like weak and strong scaling can obscure crucial runtime system overheads, making it hard to understand why certain systems perform better or worse for specific applications. The authors aim to provide a standardized, flexible, and efficient way to benchmark these systems, enabling a deeper understanding of their performance characteristics and limitations.

Methods

The core innovation is Task Bench, a framework that separates benchmark definitions from system implementations. This means a single benchmark definition can run on any system that implements the Task Bench interface, drastically reducing the effort required for cross-system comparisons. The effort shifts from implementing m benchmarks on n systems (O(mn)) to implementing m benchmarks and n systems (O(m+n)).

Task Bench models applications as task graphs, where tasks are units of work and dependencies represent communication and synchronization. This graph-based approach allows for parameterization of:

  • Graph structure: Trivial, stencil, FFT, sweep, tree, random patterns.
  • Task kernels: Compute-bound (using AVX2 FMA) and memory-bound.
  • Dependencies: Varying communication payload sizes.
  • Task parallelism: Executing multiple task graphs concurrently.

To quantify performance, the authors introduce Minimum Effective Task Granularity (METG). METG(50%) is the smallest task duration (granularity) at which an application achieves at least 50% of its peak efficiency. This metric is crucial for understanding runtime overheads, as it directly relates to the smallest problem size that can be efficiently scaled.

Datasets

The paper does not use traditional "datasets" in the machine learning sense. Instead, it introduces Task Bench itself as a new benchmark suite. Task Bench is highly parameterized, allowing for the generation of a vast number of benchmark scenarios by varying:

  • Dependence patterns: Stencil, nearest neighbor, spread, random.
  • Number of dependencies per task.
  • Communication volume per dependency.
  • Number of independent task graphs.
  • Node count.

The evaluation was performed on up to 256 Haswell nodes of the Cori supercomputer and also on Piz Daint for GPU experiments.

Key Insights and Ideas

  • METG is a superior metric for overhead: Unlike tasks per second (TPS), METG directly constrains efficiency, providing a more realistic measure of runtime performance and overheads, especially for tasks with non-trivial work.
  • Overheads vary dramatically: Systems exhibit METG values spanning over five orders of magnitude, highlighting that "good enough" performance for some applications can come with significant overheads.
  • 100 µs is a practical limit: Despite some systems achieving sub-microsecond METG in ideal conditions, a more realistic bound for efficient execution across many applications and configurations is around 100 µs.
  • Implicit parallelism can be a bottleneck: Systems relying heavily on runtime analysis for parallelism discovery can suffer from sequential bottlenecks, hindering scalability. Explicit parallelism and compile-time optimizations (like in Regent) show better scalability.
  • Task graph complexity matters: The number of dependencies per task significantly impacts METG, with even a few dependencies causing substantial increases in overhead for some systems.
  • Task Bench uncovers real-world bugs: The framework's flexibility led to the discovery of several performance issues in underlying systems, some of which have already been fixed, leading to significant improvements.

Key Results

  • System Diversity: Task Bench was implemented and evaluated across 15 diverse parallel and distributed programming systems, including MPI, Charm++, Chapel, X10, OmpSs, OpenMP, PaRSEC, Realm, Regent, StarPU, Dask, Spark, Swift/T, and TensorFlow.
  • METG(50%) values: For MPI on Cori, METG(50%) was found to be as low as 4.6 µs in best-case scenarios but rose to 28 µs at 128 nodes and 61 µs at 256 nodes for a stencil pattern.
  • Practical Limit: The study concludes that 100 µs is a reasonable bound for the METG of most applications running at scale with current technologies.
  • Scalability Bottlenecks: Systems like Spark showed rapid increases in METG with node count, indicating poor scalability for the tested workload. Regent, however, demonstrated ideal scalability due to its compile-time optimizations.
  • Performance Issues Found: Five performance issues were identified across systems like Chapel, Realm, PaRSEC, Dask, and TensorFlow, leading to bug fixes and performance improvements. For example, Realm and Chapel saw METG improvements of over an order of magnitude for small copies.

Limitations and Future Work

  • Task Granularity: The paper acknowledges that the "ideal" task granularity depends heavily on the application domain. While METG provides a runtime-limited efficiency metric, applications with very coarse tasks (e.g., data analytics) may not require fine-grained scheduling.
  • Persistent Load Imbalance: The analysis of Charm++ load balancing was limited to non-persistent imbalance, leaving the study of persistent load imbalance for future work.
  • Programmer Productivity: The study primarily focuses on performance and overheads, not explicitly on programmer productivity or portability, which are acknowledged as important factors in system selection.
  • Future Work: The authors suggest exploring the impact of programming system features on programmer productivity and performance portability. They also mention the need to investigate persistent load imbalance and the performance implications of different scheduling policies.

Summary updated

BibTeX
@inproceedings{slaughter2019task,
  author = {Elliott Slaughter and Wei Wu and Yuankun Fu and Legend Brandenburg and Nicolai Garcia and Wilhem Kautz and Emily Marx and Kaleb S. Morris and Wonchan Lee and Qinglei Cao and George Bosilca and Seema Mirchandaney and Sean Treichler and Patrick S. McCormick and Alex Aiken},
  title = {{Task Bench: A Parameterized Benchmark for Evaluating Parallel Runtime Performance}},
  booktitle = {SC},
  year = {2019},
  doi = {10.1109/sc41405.2020.00066},
}
Figure