Skip to main content

BenchExec

A Framework for Reliable Benchmarking and Resource Measurement

Build Status Apache 2.0 License PyPI version DOI

News and Updates:

  • BenchExec 3.25 can use fuse-overlayfs to make container mode work out-of-the-box again!
  • BenchExec 3.18 brings support for systems with cgroups v2!
  • We now provide an Ubuntu PPA that makes installing and upgrading BenchExec easier (docs).
  • An extended version of our paper on BenchExec and its background was published as open access in the journal STTT, you can read Reliable Benchmarking: Requirements and Solutions online. We also provide a set of overview slides.

To help new or inexperienced users get started with reliable benchmarking right away, we offer a quickstart guide that contains a brief explanation of the issues of common setups as well as the (few) steps necessary to setup and use BenchExec instead.

BenchExec is a framework for reliable benchmarking and resource measurement and provides a standalone solution for benchmarking that takes care of important low-level details for accurate, precise, and reproducible measurements as well as result handling and analysis for large sets of benchmark runs. However, even users of other benchmarking frameworks or scripts can benefit from BenchExec by letting it perform the resource measurements and limits instead of less reliable tools and techniques like time or ulimit, and results produced by BenchExec can easily be exported for use with other tools.

In particular, BenchExec provides three major features:

  • execution of arbitrary commands with precise and reliable measurement and limitation of resource usage (e.g., CPU time and memory), and isolation against other running processes
    (provided by runexec, a replacement for time and similar tools)
  • an easy way to define benchmarks with specific tool configurations and resource limits, and automatically executing them on large sets of input files
    (provided by benchexec on top of runexec)
  • generation of interactive tables and plots for the results
    (provided by table-generator for results produced with benchexec)

Unlike other benchmarking frameworks, BenchExec is able to reliably measure and limit resource usage of the benchmarked tool even if the latter spawns subprocesses. In order to achieve this, it uses the cgroups feature of the Linux kernel to correctly handle groups of processes. For proper isolation of the benchmarks, it uses (if available) Linux user namespaces and an overlay filesystem (either kernel-based or fuse-overlayfs) to create a container that restricts interference of the executed tool with the benchmarking host. More information on why this is necessary and the problems with other tools can be found in our paper Reliable Benchmarking: Requirements and Solutions (open access) and our slides (starting with slide "Checklist").

BenchExec is intended for benchmarking non-interactive tools on Linux systems. It measures CPU time, wall time, and memory usage of a tool, and allows to specify limits for these resources. It also allows to limit the CPU cores and (on NUMA systems) memory regions, and the container mode allows to restrict filesystem and network access. In addition to measuring resource usage, BenchExec can optionally verify that the result of the tool was as expected and extract further statistical data from the output. Results from multiple runs can be combined into CSV and interactive HTML tables, of which the latter provide scatter and quantile plots (have a look at our demo table).

BenchExec works only on Linux and needs a one-time setup of cgroups by the machine's administrator. The actual benchmarking can be done by any user and does not need root access.

BenchExec was originally developed for use with the software verification framework CPAchecker and is now developed as an independent project at the Software Systems Lab of the Ludwig-Maximilians-Universität München (LMU Munich).

Links

Literature

License and Copyright

BenchExec is licensed under the Apache 2.0 License, copyright Dirk Beyer. Exceptions are some tool-info modules and third-party code that is bundled in the HTML tables, which are available under several other free licenses (cf. folder LICENSES).

Authors

Maintainer: Philipp Wendler

Contributors:

Users of BenchExec

Several well-known international competitions use BenchExec, such as SMT-COMP, SV-COMP (software verification), the Termination Competition, and Test-Comp. In particular in SV-COMP BenchExec was used successfully for benchmarking in all instances of the competition and with a wide variety of benchmarked tools and millions of benchmark runs per year. BenchExec is also integrated into the cluster-based logic-solving service StarExec (GitHub).

The developers of the following tools use BenchExec:

If you would like to be listed here, contact us.

Metadata

Release files for BenchExec 3.35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BenchExec 3.35
File Size Uploaded
benchexec-3.35.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for BenchExec 3.35
File Interpreter ABI Platform
benchexec-3.35-py3-none-any.whl Python 3 none any Details

Total release size: 2.0 MB

Release files / benchexec-3.35.tar.gz

Download URL benchexec-3.35.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
53eee09f28c227a6240e1359f95eb029c4a323e9a7cbc62e51b20b2bd42d69de
BLAKE2b-256 checksum
How to use checksums
ae07bedf7b426f8c85c217b80e8a55d60542a18869e367968df9d375c3cc85cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / benchexec-3.35-py3-none-any.whl

Download URL benchexec-3.35-py3-none-any.whl
Size 768.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af196e0fa5715038a81c4ac25e7427cf312560da8664dc40e5da97454af33a91
BLAKE2b-256 checksum
How to use checksums
5a41f75e3cb3eeb75f18c432df365767b3105d2a0fa3e2024414ce7421f1ef35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

3.35 This release

2 release files

3.34

2 release files

3.33

2 release files

3.32

2 release files

3.31

2 release files

3.30

2 release files

3.29

2 release files

3.28

2 release files

3.27

2 release files

3.26

2 release files

3.25

2 release files

3.24

2 release files

3.23

2 release files

3.22

2 release files

3.21

2 release files

3.20

2 release files

3.19

2 release files

3.18

2 release files

3.17

2 release files

3.16

2 release files

3.15

2 release files

3.14

2 release files

3.13

2 release files

3.12

2 release files

3.11

2 release files

3.10

2 release files

3.9

2 release files

3.8

2 release files

3.7

2 release files

3.6

2 release files

3.5

2 release files

3.4

2 release files

3.3

2 release files

3.2

2 release files

3.1

2 release files

3.0

2 release files

2.7

4 release files

2.6

4 release files

2.5

4 release files

2.3

4 release files

2.2

4 release files

2.1

4 release files

2.0

4 release files

1.22

4 release files

1.21

4 release files

1.20

4 release files

1.19

4 release files

1.18

4 release files

1.17

4 release files

1.16

4 release files

1.14

4 release files

1.13

4 release files

1.12

4 release files

1.11

4 release files

1.10

4 release files

1.9

4 release files

1.8

4 release files

1.7

4 release files

1.6

4 release files

1.5

4 release files

1.4

4 release files

1.3

4 release files

1.2

4 release files

1.1

4 release files

1.0

4 release files

0.5

4 release files

0.4

4 release files

0.3

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page