Encryption and Decryption Benchmarks

January 18, 2026 ยท View on GitHub

Benchmarks for encryption and decryption operations in Rust implementations.

Overview

These benchmarks compare ChaCha20 and AES256 encryption/decryption throughput across different libraries.

Encryption

Library~100 bytes lines~1,000 bytes lines
Rust
libsodium::chacha200.20 GB/s0.71 GB/s
ring::chacha200.39 GB/s1.19 GB/s
ring::aes2560.61 GB/s2.89 GB/s

Decryption

Library~100 bytes lines~1,000 bytes lines
Rust
libsodium::chacha200.20 GB/s0.69 GB/s
ring::chacha200.42 GB/s1.08 GB/s
ring::aes2560.85 GB/s2.48 GB/s

See README.md for dataset information and replication instructions.