Skip to content

boracomet/macbench.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

MacBench

A small macOS terminal benchmark and system summary script, inspired by the colorful output style of Teddysun’s bench.sh. It prints CPU, memory, disk usage, network latency/speed (via speedtest-cli), and a sequential disk write test (dd).

MacBench terminal output: system info, I/O speed, and network speedtest

Requirements

  • macOS (Darwin)
  • Homebrew — used to install speedtest-cli if missing

One-liner

Run straight from GitHub:

curl -Lso- https://raw.githubusercontent.com/boracomet/macbench.sh/main/macbench.sh | bash

curl flags:

  • -L — follow redirects
  • -s — silent (no progress meter)
  • -o- — write the downloaded script to stdout so it can be piped to bash

Clone and run locally

git clone https://github.com/boracomet/macbench.sh.git
cd macbench.sh
chmod +x macbench.sh
./macbench.sh

Optional: MACBENCH_IO_MB

Control how many megabytes each dd pass writes (default 256 MB × 3 rounds; files live under /tmp):

export MACBENCH_IO_MB=128
curl -Lso- https://raw.githubusercontent.com/boracomet/macbench.sh/main/macbench.sh | bash

Security note

curl … | bash executes remote code. Prefer sources you trust, or pin a specific commit/tag in the raw URL. To inspect first:

curl -Ls -o macbench.sh https://raw.githubusercontent.com/boracomet/macbench.sh/main/macbench.sh
less macbench.sh
bash macbench.sh

Repo

About

macOS terminal benchmark: system info, dd disk write test & speedtest-cli (Homebrew). Colorful bench.sh-style output. curl | bash one-liner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages