krrishnarraj/clpeak
Peak compute, memory bandwidth and latency of CPUs, GPUs and NPUs: the same tests through every API that reaches a device. Command line and app for Windows, macOS, Linux and Android
What it solves
clpeak measures the actual peak compute throughput, memory bandwidth, and latency that CPUs, GPUs, and NPUs reach on a given machine. By running standardized tests across different hardware APIs and vendor libraries, it allows users to directly compare hardware performance side by side.
How it works
It uses small, tight native kernels alongside each vendor's tuned libraries to benchmark devices across multiple compute APIs (such as CUDA, ROCm/HIP, Metal, Vulkan, and OpenCL), AI runtimes (like ONNX Runtime, Core ML, and LiteRT), and CPU instruction sets. It is available as both a command-line tool and a cross-platform desktop and mobile application.
Who it’s for
It is for developers, hardware enthusiasts, and engineers who need to measure, verify, or compare the actual performance and throughput of their local CPU, GPU, and NPU hardware.
Highlights
- Supports a wide variety of GPU compute APIs including CUDA, Metal, Vulkan, and OpenCL.
- Benchmarks AI runtimes across NPUs, GPUs, and CPUs including Core ML, ONNX Runtime, and LiteRT.
- Provides a command-line interface as well as native apps for Windows, macOS, Linux, and Android.
- Includes built-in support for saving runs as JSON and comparing performance against previous results.
Related
- Project
baidu/puckPuck is a C++ library (with Python bindings) for approximate nearest‑neighbor search, offering two algorithms—Puck for massive, memory‑constrained datasets and Tinker for smaller, higher‑recall workloads. It supports cosine, L2, and inner‑product similarity, uses product‑quantization to cut memory usage to about a quarter, and shows top‑tier performance on the NeurIPS 2021 ANN competition. The repo provides build scripts, a Python installer, and benchmark integration.
- Project
meta/FAI-PEPFAI-PEP is a benchmarking platform that compares runtime metrics like latency, error, and energy consumption of machine learning models across different frameworks and hardware backends. It also detects performance regressions between code commits using A/B testing.
- Project
huggingface/optimum-benchmarkOptimum-Benchmark is a Hugging Face tool that measures AI model performance (speed, memory, energy) across different hardware and software backends. It supports inference and training scenarios, runs on CPU, NVIDIA, AMD, and other devices, and can be used via a Python API or command-line interface. It's under active development and not yet production-ready.
- Project
ekondis/mixbenchA benchmark tool for evaluating the performance bounds of GPUs and CPUs by testing mixed operational intensity kernels across various precision levels.
- Project
markaren/threeppthreepp is a cross-platform C++20 3D library that mirrors the three.js API, offering both OpenGL and advanced Vulkan renderers, plus simulation tools (PhysX, sensors, ArduPilot), a scene editor, and Python bindings. It's MIT-licensed, built for research/prototyping/teaching, and integrates via CMake FetchContent or Conan.