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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scitex_benchmark-0.1.1.tar.gz.
File metadata
- Download URL: scitex_benchmark-0.1.1.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268651b3fcb178de0f6847adb02af0f11984b2d9d607c9db6cd6e4042c91ee90
|
|
| MD5 |
1046c527f2ea94e546b02ecab2cdffd3
|
|
| BLAKE2b-256 |
b47b382913a6ebc27b9179a42617f2b71eda40e4b0d7fd10e03897a864cd4090
|
File details
Details for the file scitex_benchmark-0.1.1-py3-none-any.whl.
File metadata
- Download URL: scitex_benchmark-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f54c97bff8d52d143cb5efb21ad3dee1c9b92cb984d7332909d0fc3c832dd08b
|
|
| MD5 |
b67ff2a34c9610afd104ff151c9305b8
|
|
| BLAKE2b-256 |
60e10a4d505865baf3d1a275610af883d10910dea42645ed266a322c35bc2413
|