Skip to main content

xemu-perf-tester

Orchestrates running xemu benchmarks using xemu-perf-tests.

Installation

Install from Pypi

pip install xemu-perf-tester

Use

Running benchmarks

Run xemu-perf-run -h for detailed information on executing the benchmarks.

One time setup: xemu-perf-run --import-install <path_to_your_xemu.toml_file>

Test the latest xemu with the latest benchmark release

The default behavior is to download the latest xemu-perf-tests iso and xemu release and run the benchmarks using the OpenGL backend. You may pass the --use-vulkan parameter to use Vulkan instead.

xemu-perf-run

Testing against specific xemu and/or xemu-perf-tests releases

xemu-perf-run \
  --xemu-tag v0.8.7 \
  --test-tag v12345

--xemu_tag accepts:

  • a xemu release version (e.g., v0.8.92)
  • the URL of a build action (e.g., https://github.com/xemu-project/xemu/actions/runs/16152580613)
  • the URL of a pull request (PR) (e.g., https://github.com/xemu-project/xemu/pull/2329).

For PRs and actions, the build artifact for your platform is taken from the newest successful run of the xemu CI workflow (override with --ci-workflow). The tool exits with an error if there is no such run (e.g., the build is still in progress, failed, or its artifacts have expired); it never falls back to a release build.

Downloading artifacts requires an authenticated GitHub token, chosen in this order:

  1. --github-token, if given.
  2. The GitHub CLI's token (gh auth token), if gh is installed and logged in.
  3. The same token used to submit results (you will be prompted to authorize it in a browser the first time).

Results produced from a PR or action build include a dev_build section (PR number, head SHA, workflow run, base xemu version) and are ingested separately from release results.

Reusing existing xemu-perf-tests ISO and/or xemu binary

You can use the --iso and --xemu flags to specify existing artifacts. This will skip the automated check against the GitHub API for the latest tagged artifacts.

xemu-perf-run \
  --xemu ~/bin/xemu \
  --iso ~/special_perf_tests.xiso

Using a development build of xemu on macOS

Some extra flags are needed to utilize a development build of xemu. You will need to set the DYLD_FALLBACK_LIBRARY_PATH environment variable to point at a valid xemu.app binary and will need to pass the --no-bundle argument to xemu-perf-run to prevent it from attempting to find a xemu.app bundle itself.

DYLD_FALLBACK_LIBRARY_PATH=/path/to/xemu_repo/dist/xemu.app/Contents/Libraries/arm64 \
xemu-perf-run \
  --xemu /path/to/xemu_repo/build/qemu-system-i386 \
  --no-bundle

Test configuration

Conditional block listing

Tests that cannot be executed on certain versions of xemu may be disallowed using a blocklist.json file specified using the --block-list-file command.

The file provides a simple list of JSON objects, each specifying a set of one or more conditions and one or more test names to be disabled if the condition is satisfied.

For example, to disable the entire "High vertex count" suite on xemu versions less than 0.8.54:

{
  "rules": [
    {
      "conditions": [
        "$version < 0.8.54"
      ],
      "skipped": [
        "High vertex count::"
      ]
    }
  ]
}

"conditions" may use the $version variable to test against the runtime reported version of xemu.

"skipped" entries are fully qualified test names, with anything before "::" referring to a test suite and everything after to a specific test. These are exact matches, so "Suite::Test" will only disable the test literally named " Suite::Test" but would still allow "Suite::Test1" to run. The trailing "::" may be omitted when disallowing an entire test suite. For example "Suite::" is equivalent to "Suite", both will disable all tests in the "Suite" suite.

Metadata

Release files for xemu-perf-tester 0.4.2

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

Source distribution (sdist)

Source distribution for xemu-perf-tester 0.4.2
File Size Uploaded Provenance Actions
xemu_perf_tester-0.4.2.tar.gz 4.2 kB Without provenance Details for xemu_perf_tester-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xemu-perf-tester 0.4.2
File Interpreter ABI Platform Actions
xemu_perf_tester-0.4.2-py3-none-any.whl Python 3 none any Details for xemu_perf_tester-0.4.2-py3-none-any.whl

Total release size: 30.2 kB

Release files / xemu_perf_tester-0.4.2.tar.gz

Download URL xemu_perf_tester-0.4.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41ffe3791427914fd33a89e84f0d110c6e1322f9d51e75c7ac4965eccf3ba73b
BLAKE2b-256 checksum
How to use checksums
cbae037435267f90c3ac11aa9a567a79ac0d23e245b91ed8d6c77ac2a0a3f61b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / xemu_perf_tester-0.4.2-py3-none-any.whl

Download URL xemu_perf_tester-0.4.2-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bd6a9505c53c9d625a8c30a10d1bf55fb0195305ae0aacd93a8e694f2a58869
BLAKE2b-256 checksum
How to use checksums
c4b0bbbbf65e00b7f63873c4ba4f95f30278e58f015a88ee96a4e73f28508ab2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for xemu-perf-tester 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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