Very simple benchmark code to perform on laptops (float16, float32, bfloat16)
- Python 100%
| src/gpu_bench | ||
| .python-version | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Simple GPU benchmark
Code sample based on my blog post comparison.
This code has been written & evaluated for XPU and MPS.
It should give you some benchmarks on the following floating points formats: float16, float32, bfloat16.
Usage
Make sure the packages are installed:
uv sync
I let you install the torch dependency according to your hardware.
Once the package have been synced, please run:
uv run gpu-bench