This contains scripts to run a subset of the pyperformance benchmarks quickly.
Usage
PYTHON_GIL=0 PYTHONHASHSEED=0 taskset -c 4 ./python fastmark.py
Other recommendations
- Disable ALSR to reduce variation:
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space - Use
perf stat -e instructionsto record instructions executed
Setup
First build CPython locally. It doesn't need to be installed.
Install the dependencies. If Python is executed from the source directory, then this will install the packages in ~/.local/.
./python -m ensurepip
./python -m pip install -r requirements.txt
Gotchas
- Python compiles
.pycfiles for packages only when they are being installed. If thePYC_MAGIC_NUMBERchanges, then Python will recompile the bytecode while the benchmark is running, potentially distorting results. It will not update the.pycfiles for packages insite-packages, only local__pycache__directories. - Fixing the
PYTHONHASHSEEDreduces variation but may be inapprorpriate for commits that substantially modify dictionary representation.
Disabled benchmarks
- connected_components, shortest_path - networkx doesn't work with free threaded Python
- django_template, json, pycparser, pylint, thrift - Pyston benchmarks not yet enabled
- sphinx - benchmark messes with
__builtins__ - python_startup - requires separate process
Metadata
Release files for fastmark 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastmark-0.1.4.tar.gz | 8.4 MB | With provenance | Details for fastmark-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastmark-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for fastmark-0.1.4-py3-none-any.whl |
Total release size: 17.1 MB
Release files / fastmark-0.1.4.tar.gz
| Download URL | fastmark-0.1.4.tar.gz |
|---|---|
| Size | 8.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03d25eb2449c5032042fb8506ea5902de8dd7c9107e077e2bd23a77a8e696e4e
|
|
BLAKE2b-256 checksum How to use checksums |
cc235fbe992d0e828926a1109aafcb7a354d5be76a570fc498a098b80f0242a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 30, 2025.
Transparency logRelease files / fastmark-0.1.4-py3-none-any.whl
| Download URL | fastmark-0.1.4-py3-none-any.whl |
|---|---|
| Size | 8.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af30786521aff754054fdf4ffe89ad2196b7bab020e2ba7bd8697d7d211383a6
|
|
BLAKE2b-256 checksum How to use checksums |
8d2dbfd9d13adc59946909ead6e4a36d920808e93c32020a126495743a2088a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 30, 2025.
Transparency logSecurity for fastmark 0.1.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fastmark-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 30, 2025.
Transparency logA 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.