hyperfine command not found

In this troubleshooting guide we learn how to fix hyperfine command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

hyperfine: command not found

or when using sudo you get the following error message

sudo: hyperfine: command not found

Solutions to hyperfine: command not found

How To Fix hyperfine: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu hyperfine is provided by hyperfine package.

hyperfine is:

Developed in Rust, hyperfine provides the following features:

  • Statistical analysis across multiple runs.
  • Support for arbitrary shell commands.
  • Constant feedback about the benchmark progress and current estimates.
  • Warmup runs can be executed before the actual benchmark.
  • Cache-clearing commands can be set up before each timing run.
  • Statistical outlier detection to detect interference from other programs and caching effects.
  • Export results to various formats: CSV, JSON, Markdown, AsciiDoc.
  • Parameterized benchmarks (e.g. vary the number of threads).

To fix this problem, we can install more using the command below.

sudo apt-get -y install hyperfine

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install hyperfine.

sudo apt -y install hyperfine

Or if you have aptitude installed you can use the following command.

sudo aptitude install hyperfine

Summary

In this tutorial we learn how to fix hyperfine command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.