Skip to content

Benchmarks

brycx edited this page Oct 31, 2021 · 4 revisions

The following benchmarks provide an overview of the performance that can be expected from orion. If performance is of great importance, users are encouraged to benchmark orion on their own systems.

The following benchmarks were run with:

  • Rust version: rustc 1.56.0 (09c42c458 2021-10-18)
  • Command: cargo bench
  • orion version: 0.16.1
Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Algorithm Input (KiB) Time (ms) Throughput (MiB/s)
Poly1305 128 N/A 1329.766
HMAC-SHA512 128 N/A 437.09
ChaCha20Poly1305 128 N/A 275.66
XChaCha20Poly1305 128 N/A 275.19
SHA512 128 N/A 438.23
BLAKE2b 128 N/A 916.73
ChaCha20 128 N/A 341.84
XChaCha20 128 N/A 341.32
HKDF-HMAC-SHA512 (512 bytes output) N/A 0.0080766 60.456
PBKDF2-HMAC-SHA512 (10000 iter., 64 bytes output) N/A 7.1347 N/A
Argon2i (3 iter., 32 bytes output, 128 KiB memory) N/A 0.21043 0.5800977
X25519 (time pr. key exchange) N/A 0.052499 N/A
Raspberry Pi 2 Model B V1.1
Algorithm Input (KiB) Time (ms) Throughput (MiB/s)
Poly1305 128 N/A 73.014
HMAC-SHA512 128 N/A 10.352
ChaCha20Poly1305 128 N/A 22.267
XChaCha20Poly1305 128 N/A 22.205
SHA512 128 N/A 10.426
BLAKE2b 128 N/A 19.846
ChaCha20 128 N/A 32.052
XChaCha20 128 N/A 31.976
HKDF-HMAC-SHA512 (512 bytes output) N/A 0.29516 1.6543
PBKDF2-HMAC-SHA512 (10000 iter., 64 bytes output)) N/A 264.67 N/A
Argon2i (3 iter., 32 bytes output, 128 KiB memory) N/A 7.4433 0.01640039
X25519 (time pr. key exchange) N/A 1.6937 N/A
Clone this wiki locally