The only benchmark tool on the block crazy enough to abuse the UNIX yes command to test your CPU
Project description
yesBenchMark
yesBenchMark is a crazy tool for benchmarking the CPU in UNIX & UNIX-like systems. It abuses the yes command to load the CPU and measures CPU utilization, speed, and compute.
Features
- Extremely tiny & light
- Can run on extremely old hardware (OS X 10.4 Tiger is oldest it can run on of all the stuff out there, with a modest G3)
- Can do a ton of different modes, varying in load from light to extremely punishing to see how far you can push your CPU:
time- See how much the CPU can output in 30 & 60 seconds respectively in a single thread (yes)multicore- Multi-core version of thetimebenchmarkfreq- Bench how fast your CPU core can turbomulti-freq- Multi-core version offreqbenchmarkstress- See how little of the total CPU a single thread can use, also includes a stability measurementcompute- Check how long it takes the CPU to compute 27,000,000,000 hunks of data (each hunk is a singley\n)compute-xt-computebenchmark but with 10x the hunks
- Written in Python & extremely portable, so runs almost anywhere
- Probably one of the most practical benchmarks out there - measures CPU load, CPU frequency, and other things encouuntered in day-to-day workloads; none of the shenanigans that most tools use to grade your CPU's performance
Usage
Usage: yesbenchmark [options]
Options:
--help, -h Show this help message
--mode=MODE Run specific mode of benchmark
Modes:
all Run all modes of benchmarks
time Run time-bound benchmark
multicore Run time-bound benchmark for all cores
freq Run frequency-bound benchmark
multi-freq Run multi-core version of frequency-bound benchmark
stress Run stress/utilization benchmark
compute Run compute benchmark (time taken depends on CPU speed)
compute-xt Run a more extreme version of compute benchmark
Well that is...all the capabilities of the program. We recommend the compute mode for most people.
Scores for reference (performance is compute & extreme is compute-xt):
M1 Max with 8 P-cores & 2 E-cores (10 cores total):
- P70,363 → performance mode
- X685 → extreme mode
i7-2600 with 8 cores:
- P55,609 → performance mode
- X557 → extreme mode
G5 with 1 core:
- P572 → performance mode
- {untested} → extreme mode (would take forever on my iMac G5 and overheat it)
Note: Do NOT run the program with zero arguments unless you want to run ALL benchmarks except the compute-xt one. This will take a long time and likely overheat your computer.
Installation
Requirements:
- Python 3.8 or later (we don't test for older, probably works down to 3.6)
- OS X 10.5 Leopard or later (if too old to be supported by Homebrew, please use Tigerbrew to install Python 3.10) or Linux 3.2 or later (BSDs may be supported at a later time when I have time to spin up one in a virtual machine)
To install yesBenchMark via pip:
pip install yesbenchmark
Or if you have cloned the repo for development (note that this will also allow you to edit the src code without re-installing for ease):
pip install -e .
Compiling and installing as a binary
Requirements:
- The above requirements
- If macOS, an Intel x86_64 CPU or better
- MacOSX 10.9 or later if on Mac
To compile:
python3 compile.py
After that, just copy the binary in dist out and into a directory in your PATH.
License
This project is licensed under the GNU General Public License v3.0 (GPLv3). Please note that it will also be compatible with any future versions of this license, should they be released. All past and future versions of this software are covered by this license. See the LICENSE file for full details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yesbenchmark-1.0.0.post1.tar.gz.
File metadata
- Download URL: yesbenchmark-1.0.0.post1.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f316f00f619830966ef2dea08f2957a2d833b33245ec6fce0517b95d16f62125
|
|
| MD5 |
bb293dc7f3069fafaf2ba97876e3f106
|
|
| BLAKE2b-256 |
6a9090ed9a2d3434acb22f383903209740c6a6f0b302943f6bd43c826ce5d64f
|
File details
Details for the file yesbenchmark-1.0.0.post1-py3-none-any.whl.
File metadata
- Download URL: yesbenchmark-1.0.0.post1-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3e85b71161f7360c9a345715139a086cb0ee1d85b4c538233f49d1890bde5fb
|
|
| MD5 |
6a3286ec2279e81957eac6d03d71b72c
|
|
| BLAKE2b-256 |
19dd7bfbf559edbe5ef62b63e19b02be7e95e06691ae8868250fdbae9fdc242e
|