Benchmarks

Mac Benchmark: Base64 Decode (x3)

Base64 is an encoding scheme used to encode binary data in an ASCII format. This benchmark measures the time taken to decode three strings from Base64: “Hello, World!”, “The quick brown fox jumps over the lazy dog”, and “AaBbCcDdEeFf123456_!@#&*^()$=+-“.

string compression algorithm

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Go 3.040µs 2.000µs 18.000µs
2 C++ (Clang++) 4.497µs 4.102µs 5.162µs
3 PHP 5.135µs 4.680µs 7.133µs
4 Rust 5.160µs 5.000µs 6.000µs
5 C++ (G++) 9.000µs 8.000µs 10.000µs
6 C (GCC) 10.664µs 10.312µs 15.263µs
7 GraalVM 10.759µs 8.501µs 13.074µs
8 Ruby 10.920µs 10.000µs 19.000µs
9 Python 15.720µs 13.000µs 61.000µs
10 C (Clang) 19.918µs 19.348µs 20.303µs
11 Kotlin (Native) 96.170µs 57.507µs 903.747µs
12 Zig 130.360µs 117.000µs 218.000µs
13 JavaScript (Node) 184.424µs 56.228µs 3,152.400µs
14 JavaScript (Bun) 270.190µs 181.680µs 2,112.574µs
15 Java 1,330.802µs 343.195µs 17,126.235µs
16 JavaScript (Deno) 39,583.462µs 247.207µs 981,536.780µs
17 Kotlin (JVM) 486,384.869µs 20,890.345µs 1,689,631.788µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times