New Tool Radar

Local AI

How to Benchmark whisper.cpp Model Speed Before Picking a Model

Run the whisper.cpp bench.py script against the models in your models folder and compare the encoder times in the CSV it writes before you pick a model.

Schematic diagram with three steps: download two whisper.cpp models, run scripts/bench.py against them, and compare the encoder times in the CSV it writes.

Bigger Whisper models transcribe better, but they also run slower — and on your machine the gap may be larger or smaller than the numbers in a README table. Before you pick a model for a real job, measure it on your own hardware. The whisper.cpp README’s Benchmarks section says to use the whisper-bench tool for an objective comparison of inference performance across different system configurations, and it provides a script, bench.py, to run whisper.cpp with different models and audio files. This guide is about whisper.cpp’s own benchmark; it is different from the llama-bench guide, which measures a different project’s models, and from the mlx_lm.benchmark guide, which measures MLX models on Apple Silicon.

Build and download two models

Build the project with the README’s own Quick start commands:

git clone https://github.com/ggml-org/whisper.cpp.git
cd whisper.cpp
cmake -B build
cmake --build build -j --config Release

Then download two models to compare. The Quick start downloads base.en with the download script; download the multilingual tiny and base the same way:

sh ./models/download-ggml-model.sh tiny
sh ./models/download-ggml-model.sh base

The README’s memory table puts tiny at 75 MiB on disk and about 273 MB of memory, and base at 142 MiB on disk and about 388 MB of memory, so both fit easily. The repository ships a sample recording, samples/jfk.wav, which the bench command uses as its audio file.

Run the bench script

The README gives the bench command exactly:

python3 scripts/bench.py -f samples/jfk.wav -t 2,4,8 -p 1,2

By default it will run against any standard model in the models folder, so with tiny and base downloaded it measures both. The script is written in Python with the intention of being easy to modify and extend for your benchmarking use case. It outputs a csv file with the results of the benchmarking. Alongside the script, the whisper-bench tool itself simply runs the Encoder part of the model and prints how much time it took to execute it — the README’s examples table describes it as the tool to benchmark the performance of Whisper on your machine.

Read the CSV and pick

Open the CSV the script wrote and compare the times model by model. The comparison is what you came for — not any single absolute number, which belongs to your machine alone. Keep in mind what the tool actually measures: whisper-bench runs the Encoder part of the model only, so the time it prints is encoder time, not a full end-to-end transcription. Weigh the speed against what you need the transcript for: a quick draft can use the faster model, while a transcript you will publish may be worth the slower one.

Try it: four checks

Check What you should see If you do not see it
Models Two model files in the models folder after the download script runs twice Run the download script once per model — the bench script only measures the models that are there
Built The build/bin/whisper-cli binary exists after the CMake build The CMake build failed — read the build output and run it again
Run The bench.py command finishes and a CSV file with the results appears Check the -f path points at samples/jfk.wav in the repository
Compare The CSV has times for both models, so you can say which one is faster on your machine If only one model is in the folder, only one model is measured — download the second one first

Expected result. We checked the whisper.cpp README for the Benchmarks section (use the whisper-bench tool for an objective comparison across system configurations; the tool runs the Encoder part of the model and prints how much time it took; the bench.py script with the command python3 scripts/bench.py -f samples/jfk.wav -t 2,4,8 -p 1,2; by default it runs against any standard model in the models folder; written in Python to be easy to modify and extend; it outputs a csv file with the results), the Quick start clone, download, and CMake build commands, the memory table with tiny at 75 MiB and base at 142 MiB, the 16-bit WAV note, and the examples table describing whisper-bench as the tool to benchmark the performance of Whisper on your machine. We did not run whisper.cpp or benchmark any model.

Limits

whisper-bench measures the Encoder part of the model only, so its time is not a full transcription time — use it to compare models against each other, not to predict how long a file will take to transcribe. The numbers belong to your machine and its current load; the README’s point is an objective comparison across system configurations, so re-run the script if you change hardware or settings. The bench script only measures the models already in the models folder. We did not run whisper.cpp, so no time here is a measured result.

Sources

See all