Cross-platform ML benchmarking toolkit (CPU/GPU + system specs) for Windows and macOS.
Project description
MachineLearningBenchMarkingToolkit
Cross-platform machine-learning benchmarking toolkit to compare Windows PCs and MacBook (Pro/Air) machines. It reports system specs (CPU cores/frequency, RAM) and runs lightweight ML-style benchmarks on:
- CPU (always)
- NVIDIA CUDA GPU (Windows/Linux, if available)
- Apple Silicon GPU via MPS (macOS, if available)
Outputs are saved as JSON files so you can easily compare multiple machines.
Features
- ✅ Machine specs: hostname, OS, CPU model, cores, CPU freq, RAM totals/available
- ✅ Accelerator info:
- CUDA: GPU name, total VRAM, compute capability
- MPS: Apple Silicon (unified memory note)
- ✅ Benchmarks:
- PyTorch matmul on CPU
- PyTorch matmul on CUDA/MPS (if available)
- Optional: scikit-learn RandomForest training benchmark
Installation
Minimal
pip install mlbenchkit
With PyTorch benchmarks
# With PyTorch benchmarks
pip install "mlbenchkit[torch]"
With scikit-learn benchmark
pip install "mlbenchkit[sklearn]"
Everything
pip install "mlbenchkit[torch,sklearn]"
## How to use it?
```bash
mlbench specs
Run benchmark suite (saves a JSON file):
mlbench run
# Run with sklearn benchmark:
mlbench run --with-sklearn
## Customize workload:
mlbench run --cpu-N 2048 --gpu-N 4096 --iters 50 --warmup 20 --gpu-dtype float16
Project details
Release history Release notifications | RSS feed
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 mlbenchkit-0.1.0.tar.gz.
File metadata
- Download URL: mlbenchkit-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f0d5ae7e92d018244fe88803f8ad1821a4252b1adb05ed5a13e2a7eef18e7f
|
|
| MD5 |
b9eb1181390de1b87dd4d5b544e5d0da
|
|
| BLAKE2b-256 |
6322205ebe8864db1f927644b8c3cc4678e6831e229af67b661db66cd94bb0a0
|
File details
Details for the file mlbenchkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlbenchkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5486bb0a26255c3728f6ae1b98d07f7a446bbb7ebb7a9adbd97ae54acb13602c
|
|
| MD5 |
a2d08b997c55f87755dfa7fe07ce1857
|
|
| BLAKE2b-256 |
2764715f4a027b4c586ff4328d26fb827ba3c5b174bcc8628cc439be86628abc
|