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

SciTeX

Performance benchmarking, runtime monitoring, and profiling helpers.

Full Documentation · pip install scitex-benchmark


Installation

pip install scitex-benchmark

Quick Start

import scitex_benchmark as bm

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

1 Interfaces

Python 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.

Part of SciTeX

scitex-benchmark is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0-only (see LICENSE).


SciTeX

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_benchmark-0.1.4.tar.gz
  • Upload date:
  • Size: 25.5 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.4.tar.gz
Algorithm Hash digest
SHA256 09ab113b5e98c1c1813c9bc1c5d9e57e8af9f5dc81d3de0fae8e980aa6f030b2
MD5 2394c2f840966f039ac4bf2df746c13e
BLAKE2b-256 c7f41f604de9b04674065482c6ee1eb5caaf5194d350ccdef0fa0ba5d670afe0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scitex_benchmark-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b67233460d3d300bd25ad3bd49951f38deb4185ee6be7c54a2350685ac9c5a48
MD5 e7392a976a26c365df616cc42b15a78c
BLAKE2b-256 29452b3ddd2c0dbcfe39e73cede666a1107ddabfee6d986627ee8aa7db068e30

See more details on using hashes here.

Provenance

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