Benchmarking RandomX on Mac
I wanted to test my MBP CPU out on the incoming Monero algorithm RandomX but there are no builds for Mac and I wasn’t in the mood to try and compile from source on Mac. Docker to the rescue!
Install Docker Desktop https://www.docker.com/products/docker-desktop
Fire up an Ubuntu 18.04 container
docker run -it ubuntu:18.04 bash
Install all a few bits and bobs
apt-get update && apt-get install -y wget unzip
Download the precompiled RandomX benchmark for Linux. The releases can be found here https://github.com/tevador/RandomX/releases
wget https://github.com/tevador/RandomX/releases/download/v1.0.4/RandomX-benchmark-linux-x64-v1.0.4.zip && unzip RandomX-benchmark-linux-x64-v1.0.4.zip && chmod +x ./randomx-benchmark
Try it out
./randomx-benchmark --help
You should see help output
Supported options:
--help shows this message
--mine mining mode: 2080 MiB
...