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 | 2.336µs | 1.903µs | 2.926µs |
2 | PHP | 5.250µs | 4.409µs | 7.464µs |
3 | Ruby | 7.878µs | 5.441µs | 10.069µs |
4 | Python | 12.588µs | 10.048µs | 18.024µs |
5 | C (GCC) | 26.884µs | 24.536µs | 43.242µs |
6 | C (Clang) | 50.646µs | 45.966µs | 65.212µs |
7 | C++ (Clang++) | 148.160µs | 12.333µs | 3,350.281µs |
8 | JavaScript (Bun) | 201.100µs | 172.043µs | 380.364µs |
9 | Rust | 1,022.733µs | 8.877µs | 25,281.067µs |
10 | JavaScript (Deno) | 3,579.643µs | 237.807µs | 49,521.881µs |
11 | C++ (G++) | 3,742.555µs | 10.850µs | 78,050.539µs |
12 | Kotlin (Native) | 4,514.744µs | 811.292µs | 43,038.031µs |
13 | JavaScript (Node) | 8,864.427µs | 173.947µs | 61,265.776µs |
14 | Java | 9,116.407µs | 396.385µs | 48,609.942µs |
15 | Kotlin (JVM) | 601,285.205µs | 428,317.851µs | 937,289.188µs |