Benchmarks

Linux 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 15.682µs 14.287µs 16.872µs
2 C (GCC) 44.895µs 37.621µs 95.210µs
3 C (Clang) 45.199µs 40.317µs 63.650µs
4 Python 45.626µs 38.663µs 57.008µs
5 GraalVM 155.697µs 137.681µs 181.374µs
6 Zig 290.544µs 47.850µs 5,933.366µs
7 PHP 906.565µs 28.344µs 21,862.692µs
8 C++ (Clang++) 2,222.592µs 158.098µs 51,397.444µs
9 Rust 3,393.114µs 46.688µs 63,488.082µs
10 Ruby 5,075.727µs 376.516µs 55,278.576µs
11 Kotlin (Native) 5,702.950µs 805.318µs 51,764.697µs
12 C++ (G++) 9,353.733µs 133.975µs 71,280.846µs
13 JavaScript (Node) 48,804.387µs 1,678.614µs 121,298.174µs
14 JavaScript (Deno) 52,964.224µs 2,004.756µs 88,289.354µs
15 JavaScript (Bun) 68,974.747µs 3,219.140µs 144,170.197µs
16 Java 482,135.783µs 110,222.981µs 658,077.169µs
17 Kotlin (JVM) 1,567,743.021µs 1,182,326.148µs 1,961,652.137µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times