Skip to main content

Multivariate polynomial arithmetic benchmark tests.

Project description

polybench

Test PyPI version

Multivariate polynomial arithmetic benchmark tests.

Many scientific and engineering applications utilise multivariate polynomial arithmetic in their algorithms and solutions. Here we provide a set of benchmark tests for often-used operations in multivariate polynomial arithmetic:

  • Greatest common divisor
  • Factorisation

Requirements

You also need at least one or more tools to be benchmarked. They are (in alphabetical order):

Getting started

Clone this repository and try to run the run.sh script:

git clone https://github.com/tueda/polybench.git
cd polybench
./run.sh --all

When starting the script for the first time, it automatically sets up a virtual environment for required Python packages so that it will not dirty your environment. Some of the tools are provided as libraries registered in public package registries, so the first run takes some time to download, compile and link them with test binaries. After testing, a CSV file and comparison plots will be generated.

For practical benchmarking, configuration parameters should be set adequately. See the help message shown by

./run.sh --help

You can also use pip, pipx, Poetry or Docker with this repository. Installation with pip(x) install or poetry install makes a command polybench available, which acts as the run.sh script described above.

pip install polybench
polybench --all
python -m polybench --all  # alternative way to launch
pipx install polybench
polybench --all
git clone https://github.com/tueda/polybench.git
cd polybench
poetry install
poetry run polybench --all
docker build -t polybench:latest https://github.com/tueda/polybench.git
docker run -it --rm polybench:latest
./run.sh --all

Example

platform Linux-5.15.0-84-generic-x86_64-with-glibc2.29
python_version 3.8.10.final.0 (64 bit)
cpu_brand 12th Gen Intel(R) Core(TM) i9-12900
cpu_count 16 (logical: 24)
total_memory 62.6GB
FLINT flint 3.4.0, gcc-11 (GNU) 11.4.0
FORM FORM 5.0.0 (Jan 27 2026, v5.0.0)
Mathematica 14.3.0 for Linux x86 (64-bit) (July 31, 2025)
reFORM 0.1.0-fix-serialize, rustc 1.93.0 (254b59607 2026-01-19)
Rings 2.5.8, JVM: 11.0.20.1 (Ubuntu 11.0.20.1+1-post-Ubuntu-0ubuntu120.04)
Singular Singular for x86_64-Linux version 4.4.1 (44100, 64 bit) Jan 2025
Symbolica 1.3.0, rustc 1.93.0 (254b59607 2026-01-19)

nontrivial-gcd

nontrivial-factor

Additional benchmark results are available here.

Development

# Initialisation
poetry install
poetry run pre-commit install

# Linting and testing
poetry run pre-commit run --all-files
poetry run pytest

# Linting and testing for Cargo subproject
cd path/to/project
cargo fmt
cargo clippy
cargo test

# Linting and testing for Gradle subproject
cd path/to/project
./gradlew spotlessApply
./gradlew check

# Test run
./run.sh <options>  # for example, --all

# Release a new version
./scripts/make-release.sh <new_version>  # for example, 0.3.0rc1

License

MIT

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

polybench-0.4.0.tar.gz (91.7 kB view details)

Uploaded Source

Built Distribution

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

polybench-0.4.0-py3-none-any.whl (98.3 kB view details)

Uploaded Python 3

File details

Details for the file polybench-0.4.0.tar.gz.

File metadata

  • Download URL: polybench-0.4.0.tar.gz
  • Upload date:
  • Size: 91.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.0 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for polybench-0.4.0.tar.gz
Algorithm Hash digest
SHA256 18fa7dcae8032a94115f0abaf53cf73f301356c6881bdea2d74ac5e70129a083
MD5 383db60cbe48e9328f4e6cc6881dc5bc
BLAKE2b-256 9dd3a6ce699f23a213b492f98d7c1639af08c2911cd1540d7f99f43480343f4a

See more details on using hashes here.

File details

Details for the file polybench-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: polybench-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 98.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.0 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for polybench-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bb76d7458d8607d933d2ca8dc066809fcaf3c973f6ff21b98e2309abc9c4bfc
MD5 fc0a518f82b6146504f6bc7dc6274778
BLAKE2b-256 2a92a91af33b7cff981a3f49fc5e6dcf651c6e6ff92eeb35f8cd08078aba2387

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