SHA256 CPU + GPU benchmark for Apple Metal
cargo run --release --bin cpu
cargo run --release --bin gpu
CPU: After 1000 iterations: 10873127 hashes per second
GPU: After 1000 iterations: 6243050 hashes per second
---------------------------
* Hash-Mode 1400 (SHA2-256)
---------------------------
Speed.#1.........: 447.2 MH/s (64.33ms) @ Accel:512 Loops:256 Thr:32 Vec:1
device_info->kernel_accel_dev, 512
device_info->kernel_loops_dev, 256
device_info->kernel_threads_dev, 32
device_info->vector_width_dev 1