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 PHP 26.376µs 23.500µs 43.400µs
3 C (GCC) 30.768µs 27.100µs 77.800µs
4 C (Clang) 31.684µs 27.200µs 56.200µs
5 Python 65.048µs 54.100µs 103.900µs
6 Rust 80.596µs 72.800µs 91.800µs
7 Zig 81.512µs 65.900µs 141.700µs
8 GraalVM 241.916µs 184.900µs 831.800µs
9 C++ (G++) 504.220µs 186.000µs 3,757.500µs
10 C++ (Clang++) 992.244µs 639.100µs 2,625.600µs
11 Ruby 2,816.156µs 2,045.000µs 8,994.900µs
12 JavaScript (Deno) 3,386.112µs 1,731.800µs 9,907.200µs
13 JavaScript (Node) 13,472.084µs 1,922.300µs 91,313.100µs
14 Kotlin (Native) 42,706.192µs 13,213.900µs 113,146.700µs
15 JavaScript (Bun) 219,354.536µs 102,512.800µs 637,056.300µs
16 Java 332,065.732µs 54,443.400µs 1,941,907.600µs
17 Kotlin (JVM) 377,293.444µs 117,752.700µs 2,047,846.500µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times