Skip to main content

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

Project description

scitex-benchmark

SciTeX

Performance benchmarking, runtime monitoring, and profiling helpers.

Full Documentation · uv pip install scitex-benchmark[all]

PyPI Python Tests Coverage Docs License: AGPL v3


Installation

pip install scitex-benchmark

Architecture

src/scitex_benchmark/
├── benchmark.py     # high-level benchmark() runner + statistical comparisons
├── profiler.py      # Profiler context manager (wall-clock + memory)
├── monitor.py       # long-running resource monitor (CPU/RAM/GPU)
└── _skills/         # SciTeX skills metadata

Demo

flowchart LR
    Code[user code] --> P[Profiler ctx]
    Code --> B[benchmark - repeated runs]
    Code --> M[Monitor - long runs]
    P --> Stats[wall-clock + RSS]
    B --> Stats
    M --> Stats
    Stats --> Report[summary - DataFrame / CSV]

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. Install via the umbrella with pip install scitex[benchmark] to use as scitex.benchmark (Python) or scitex benchmark ... (CLI).

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scitex_benchmark-0.1.5.tar.gz
  • Upload date:
  • Size: 26.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.5.tar.gz
Algorithm Hash digest
SHA256 3516e90da56386aebc60c15c58ec8b15966171597cb8640a2caa8722c768566e
MD5 14ea5d09cb43df00105ee7b7a67203c4
BLAKE2b-256 2ba58a42cb8b4c9d0f842c2e1146deb760571e1d29a623990bfb57e1fda24ad4

See more details on using hashes here.

Provenance

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

Publisher: pypi-publish-and-github-release-on-tag.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for scitex_benchmark-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3029cfe39c55c49d9591dfd0452a1209e30e417fb6f97945297c78f2d6496672
MD5 bf6988fd2b4516fe9f5908bf8fcf83c5
BLAKE2b-256 44e56977bb7fd406849a4d3a093779a04f854cc3e55a96843f188bd7ef7352b9

See more details on using hashes here.

Provenance

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

Publisher: pypi-publish-and-github-release-on-tag.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