Benchmarks

Mac Benchmark: MD5 Hashing (x25)

Message Digest 5 (MD5) is a widely used cryptographic hash function that produces a 128-bit (16-byte) hash value. It is commonly used to verify the integrity of data. This benchmark measures the time taken to hash 25 strings using the MD5 algorithm.

string encryption

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 PHP 12.572µs 11.938µs 15.199µs
2 Go 14.360µs 11.000µs 33.000µs
3 C (GCC) 19.464µs 17.727µs 51.335µs
4 C (Clang) 21.852µs 21.163µs 22.485µs
5 Zig 26.280µs 24.000µs 58.000µs
6 Python 45.160µs 33.000µs 214.000µs
7 Rust 64.280µs 62.000µs 79.000µs
8 C++ (G++) 110.360µs 95.000µs 263.000µs
9 C++ (Clang++) 158.229µs 151.421µs 205.167µs
10 GraalVM 177.109µs 139.261µs 628.258µs
11 Ruby 530.600µs 473.000µs 722.000µs
12 Kotlin (Native) 971.535µs 378.946µs 7,201.624µs
13 JavaScript (Deno) 1,989.577µs 1,435.638µs 8,178.175µs
14 JavaScript (Node) 3,466.797µs 1,459.490µs 44,262.418µs
15 JavaScript (Bun) 77,957.994µs 2,265.590µs 657,460.612µs
16 Java 462,482.262µs 19,237.525µs 2,071,713.413µs
17 Kotlin (JVM) 1,299,651.748µs 46,857.775µs 3,425,158.832µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times