Skip to main content

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

Project description

scitex-benchmark

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.0.tar.gz (23.2 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.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_benchmark-0.1.0.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for scitex_benchmark-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8545eddadfccacb9b20a8b206efa5235ecc0df379fd442c15a78f11248c6315a
MD5 7ae5df5477c24abd0d9a89850425f3e9
BLAKE2b-256 5bf35ddf7cf5616a2b2cd3c9ee8becd800f7a00f1036239dca3c4d9bcd6d68e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scitex_benchmark-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff94b839e24ab6c5fff3475ca011d4c6e0c177138c493424df34cc804bee9f2
MD5 d77115f4cbf9343d2e7264fc17d7125d
BLAKE2b-256 afcb9d87d345468cf4b69c5c58f2de4861732f124d1f5c8a8f357286e70eabf9

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