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

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

wget && unzip && 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
  --verify      verification mode: 256 MiB
  --jit         x86-64 JIT compiled mode (default: interpreter)
  --largePages  use large pages
  --softAes     use software AES (default: x86 AES-NI)
  --threads T   use T threads (default: 1)
  --affinity A  thread affinity bitmask (default: 0)
  --init Q      initialize dataset with Q threads (default: 1)
  --nonces N    run N nonces (default: 1000)
  --seed S      seed for cache initialization (default: 0)

There are some drawbacks, namely without some extra effort you won’t be able to use the --largePages option.


Now read this

Minimum MySQL Privileges for Rails

Every time I go to setup a dedicated user in a MySQL database server to support a Rails application I find myself searching the web for the privileges that Rails needs. By the way, if you are hooking to a MySQL database in your Rails... Continue →