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.604µs 11.424µs 15.480µs
2 Go 18.560µs 10.000µs 66.000µs
3 C (GCC) 18.865µs 16.689µs 28.750µs
4 C (Clang) 23.995µs 20.186µs 63.256µs
5 Zig 26.560µs 22.000µs 35.000µs
6 D 27.156µs 23.600µs 40.900µs
7 Python 38.800µs 32.000µs 89.000µs
8 Rust 74.720µs 58.000µs 175.000µs
9 C++ (G++) 108.200µs 89.000µs 223.000µs
10 C++ (Clang++) 160.700µs 143.646µs 256.971µs
11 GraalVM 304.841µs 122.115µs 1,799.805µs
12 Kotlin (Native) 652.272µs 367.080µs 2,308.858µs
13 Ruby 1,012.520µs 451.000µs 9,405.000µs
14 JavaScript (Deno) 2,160.490µs 1,383.447µs 5,785.540µs
15 JavaScript (Node) 3,019.747µs 1,370.862µs 29,380.359µs
16 JavaScript (Bun) 162,422.190µs 2,072.655µs 794,301.713µs
17 Java 235,796.993µs 17,911.606µs 1,259,034.408µs
18 Kotlin (JVM) 1,716,718.159µs 53,330.552µs 3,229,089.749µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times