Skip to content

Instantly share code, notes, and snippets.

@dd86k
Created December 27, 2020 19:56
Show Gist options
  • Save dd86k/5eac0bd6c93ea1d4fd9d93ec2eb29425 to your computer and use it in GitHub Desktop.
Save dd86k/5eac0bd6c93ea1d4fd9d93ec2eb29425 to your computer and use it in GitHub Desktop.
Hash Benchmark

Average (-a) rates

  • Processor: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  • Platform: AMD64
  • Hypervisor: VirtualBox 6.1.16 with KVM
  • Command pv -a /dev/urandom

The values are taken after the rate has been stable for a few seconds.

GNU Coreutils / Busybox

  • GNU Coreutils version: 8.30
  • Busybox version: 1.31
OS md5sum sha1sum sha256sum sha512sum
Ubuntu 20.04 (5.4.0-58-generic) 128 MiB/s 128 MiB/s 127 MiB/s 128 MiB/s
Alpine 3.12.3 (5.4.84-0-lts) 107 MiB/s 40 MiB/s 40 MiB/s 60 MiB/s

OpenSSL

  • Version on Ubuntu: 1.1.1f
  • Version on Alpine: 1.1.1i
OS -md5 -sha1 -sha256 -sha512 -sha3-256 -sha3-512
Ubuntu 20.04 (5.4.0-58-generic) 124 MiB/s 124 MiB/s 123 MiB/s 126 MiB/s 124 MiB/s 120 MiB/s
Alpine 3.12.3 (5.4.84-0-lts) 113 MiB/s 116 MiB/s 103 MiB/s 107 MiB/s 100 MiB/s 82 MiB/s

DDH

  • Version: 0.4.2 compiled with LDC 1.20.1 (LLVM 10.0)
OS md5 sha1 sha256 sha512 sha3-256 sha3-512
Ubuntu 20.04 (5.4.0-58-generic) 126 MiB/s 127 MiB/s 124 MiB/s 128 MiB/s 106 MiB/s 72 MiB/s
Alpine 3.12.3 (5.4.84-0-lts) 125 MiB/s 122 MiB/s 98 MiB/s 95 MiB/s 58 MiB/s 44 MiB/s
@dd86k
Copy link
Author

dd86k commented Apr 8, 2022

Should redo this benchmark...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment