rbx-cryptography

Benchmarks

How rbx-cryptography compares with other Roblox cryptography libraries.

Performance benchmarks done on a RedMagic 11 Pro in the Roblox mobile client with RunBench.client.luau

Results

View
SHA-256
50 KB input. Throughput in MB/s, higher is better.
SHA-512
50 KB input. Throughput in MB/s, higher is better.
SHA3-512
50 KB input. Throughput in MB/s, higher is better.
BLAKE2b
50 KB input. Throughput in MB/s, higher is better.
BLAKE3
50 KB input. Throughput in MB/s, higher is better.
HMAC
50 KB input. Throughput in MB/s, higher is better.
ChaCha20
50 KB input. Throughput in MB/s, higher is better.
Poly1305
50 KB input. Throughput in MB/s, higher is better.
AES-256-GCM
50 KB input. Throughput in MB/s, higher is better.
XOR
1 MB input. Throughput in MB/s, higher is better.
Base64 encode and decode
50 KB input. Throughput in MB/s, higher is better.

Others

JobInputResult
KMAC-12850 KB243 MB/s
KMAC-25650 KB200 MB/s
Ed25519 public key29.1 μs
Ed25519 sign64 byte message39.3 μs
Ed25519 verify64 byte message158.8 μs
X25519 exchange106.0 μs
ML-DSA-44 key generation78.2 μs
ML-DSA-44 sign64 byte message138.5 μs
ML-DSA-44 verify64 byte message60.0 μs
ML-KEM-512 key generation28.9 μs
ML-KEM-512 encapsulate33.0 μs
ML-KEM-512 decapsulate51.8 μs

On this page