Benchmarks

Windows Benchmark: SHA-1 Hashing (x25)

Secure Hash Algorithm 1 (SHA-1) is a widely used cryptographic hash function that produces a 160-bit (20-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 SHA1 algorithm.

string encryption

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Go 0.000µs 0.000µs 0.000µs
2 D 18.236µs 16.200µs 20.800µs
3 PHP 26.556µs 20.300µs 73.200µs
4 C (Clang) 32.544µs 26.600µs 59.200µs
5 C (GCC) 39.304µs 25.100µs 194.700µs
6 Zig 75.092µs 62.900µs 158.600µs
7 Rust 84.348µs 63.700µs 242.200µs
8 Python 89.876µs 70.500µs 149.500µs
9 GraalVM 211.884µs 165.800µs 525.700µs
10 C++ (G++) 261.644µs 179.600µs 1,386.300µs
11 C++ (Clang++) 900.944µs 645.900µs 2,203.600µs
12 Ruby 2,306.156µs 1,491.700µs 11,999.900µs
13 JavaScript (Deno) 3,548.112µs 1,828.100µs 11,896.000µs
14 JavaScript (Node) 15,053.728µs 1,679.900µs 87,614.300µs
15 Kotlin (Native) 52,168.412µs 4,997.800µs 169,985.500µs
16 Java 179,178.296µs 57,080.900µs 480,428.200µs
17 JavaScript (Bun) 225,614.308µs 75,353.700µs 445,657.600µs
18 Kotlin (JVM) 240,748.792µs 85,296.400µs 616,583.500µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times