Skip to main content

A Framework for Reliable Benchmarking and Resource Measurement.

Project description

BenchExec

A Framework for Reliable Benchmarking and Resource Measurement

Build Status Apache 2.0 License PyPI version DOI

News and Updates:

  • BenchExec 3.18 brings support for systems with cgroups v2!
  • Linux kernel 5.11 finally makes it possible to use all BenchExec features on distributions other than Ubuntu!
  • 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.

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
  • an easy way to define benchmarks with specific tool configurations and resource limits, and automatically executing them on large sets of input files
  • generation of interactive tables and plots for the results

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 to create a container that restricts interference of the executed tool with the benchmarking host. 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 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

BenchExec was successfully used for benchmarking in all instances of the international competitions on Software Verification and Software Testing with a wide variety of benchmarked tools and hundreds of thousands benchmark runs. It is 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BenchExec-3.20.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BenchExec-3.20-py3-none-any.whl (705.8 kB view details)

Uploaded Python 3

File details

Details for the file BenchExec-3.20.tar.gz.

File metadata

  • Download URL: BenchExec-3.20.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for BenchExec-3.20.tar.gz
Algorithm Hash digest
SHA256 e796e8636772825aa7c72aa3aaf0793522e3d0d55eb9220f7706421d4d3f38a9
MD5 a1b1873c18f116c051f67d44eea21461
BLAKE2b-256 607c04f0706b153c63e94b01fdb1f3ccfca19c80fa7c42ac34c182f4b1a12c75

See more details on using hashes here.

File details

Details for the file BenchExec-3.20-py3-none-any.whl.

File metadata

  • Download URL: BenchExec-3.20-py3-none-any.whl
  • Upload date:
  • Size: 705.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for BenchExec-3.20-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8c12fbcd37c9e59a73e820e5e33881a0c88b6244a9d21300bdf0f80d822cd9
MD5 8830b0a9111eb9ad7a1d6af7c3e80bb2
BLAKE2b-256 398b7b4831569a556d69cb658e0ecb563e53c4e9b34385fee3deee0f65195739

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page