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.2.tar.gz (24.8 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.2-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_benchmark-0.1.2.tar.gz
  • Upload date:
  • Size: 24.8 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.2.tar.gz
Algorithm Hash digest
SHA256 b17f8af5b12b4a1924cc745d161ae0a35dcc3aea66e907b163c820a87de6a4aa
MD5 d5644196893eaf511bb61182045b625e
BLAKE2b-256 bfa8405571a89a42cf7d7d770adc251ba9ab77d64b1e5b5b2617f704acd36bb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_benchmark-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for scitex_benchmark-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 922a1dbd2cef0171edf5a3e0b829e71b74d57213d7ad0a30a17fc1421f10891b
MD5 6ad7714f65cb95439851a6165e9ca660
BLAKE2b-256 2c1531ddc27082a06bf6987ab655b4394226c26063000c0e1673fbe619875fa6

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_benchmark-0.1.2-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