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
  • Project
  • Project
  • Project
  • Project