Skip to main content

Performance benchmarking, runtime monitoring, and profiling helpers — standalone module from the SciTeX ecosystem

Project description

scitex-benchmark

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

Performance benchmarking, runtime monitoring, and profiling helpers extracted from the SciTeX ecosystem as a standalone package.

Install

pip install scitex-benchmark

API

import scitex_benchmark as bm

# Benchmark suite — time/memory across input sizes
suite = bm.BenchmarkSuite("io")
suite.add_benchmark(my_func, gen_input, "name", sizes=["1MB", "10MB"])
results = suite.run()

# Runtime monitor — alerts when CPU/RAM/disk thresholds breached
monitor = bm.RuntimeMonitor(cpu_threshold=80, mem_threshold=90)
with monitor:
    long_running_job()

# Profiler — quick wall-clock + memory snapshot
with bm.Profiler() as p:
    work()
print(p.summary())

Status

Standalone fork of scitex.benchmark. Only dep is psutil. The umbrella package's scitex.benchmark import path is preserved via a sys.modules-alias bridge. Convenience builders inside benchmark.py import scitex.io/scitex.stats lazily if you opt in — without those installed they simply error out at the call site, but the core API works without them.

License

AGPL-3.0-only (see LICENSE).

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

scitex_benchmark-0.1.3.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

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

scitex_benchmark-0.1.3-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file scitex_benchmark-0.1.3.tar.gz.

File metadata

  • Download URL: scitex_benchmark-0.1.3.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_benchmark-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dd33edc2d303e393c32f85fbadc3f5247bc0e686f3fc75f28eb5d170fa3dc1da
MD5 95f8336c5a8e4c4b5e74ddcd0c9e11b8
BLAKE2b-256 3161edcaa855fa504f2be6ab9217d1c4320659894539b52c62cf2c60e0a7d31b

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_benchmark-0.1.3.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-benchmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_benchmark-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for scitex_benchmark-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 171ae05727a005912d875e7eb0bf99f744c73ef9158cf760a169c5fef1c4249d
MD5 15818d4ed33ce1aa7b7fe90abfe27673
BLAKE2b-256 86b3e4b1d52287c321ee1c4f32f846b3f4c17c94234267dbe881f6a34a1d8619

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_benchmark-0.1.3-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-benchmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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