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 19.584µs 16.600µs 46.000µs
3 PHP 27.412µs 23.000µs 71.700µs
4 C (GCC) 69.868µs 27.400µs 1,061.100µs
5 Zig 73.196µs 65.000µs 106.900µs
6 C (Clang) 73.424µs 26.600µs 1,070.900µs
7 Python 89.568µs 69.900µs 210.600µs
8 Rust 179.676µs 67.200µs 2,568.100µs
9 C++ (G++) 239.228µs 171.800µs 1,286.800µs
10 GraalVM 446.060µs 180.600µs 6,438.600µs
11 C++ (Clang++) 1,074.232µs 645.000µs 3,411.800µs
12 Ruby 3,453.684µs 1,561.900µs 19,044.300µs
13 JavaScript (Deno) 3,534.988µs 1,867.900µs 10,893.700µs
14 JavaScript (Node) 18,299.660µs 1,743.100µs 97,206.800µs
15 Kotlin (Native) 33,561.364µs 7,726.700µs 145,392.300µs
16 Kotlin (JVM) 227,275.892µs 87,156.800µs 648,801.400µs
17 JavaScript (Bun) 289,924.360µs 154,784.300µs 790,223.100µs
18 Java 300,966.800µs 52,154.200µs 855,331.901µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times