Benchmarks

Linux 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.338µs 1.893µs 2.825µs
2 GraalVM 3.877µs 2.945µs 4.548µs
3 PHP 5.058µs 4.168µs 6.742µs
4 Ruby 9.049µs 6.482µs 14.227µs
5 Python 12.604µs 9.979µs 24.926µs
6 C++ (Clang++) 14.084µs 12.102µs 16.311µs
7 C (Clang) 51.097µs 44.864µs 76.473µs
8 JavaScript (Node) 61.388µs 50.685µs 89.237µs
9 JavaScript (Bun) 661.408µs 218.530µs 8,839.428µs
10 Rust 1,005.165µs 2.916µs 24,951.448µs
11 Kotlin (Native) 1,474.276µs 441.539µs 11,732.299µs
12 C (GCC) 1,479.553µs 24.236µs 21,047.013µs
13 D 2,052.500µs 42.400µs 50,087.200µs
14 Zig 2,646.223µs 166.923µs 39,069.094µs
15 C++ (G++) 2,858.911µs 11.222µs 71,160.001µs
16 JavaScript (Deno) 6,927.163µs 230.483µs 49,007.531µs
17 Java 11,275.349µs 409.528µs 56,565.228µs
18 Kotlin (JVM) 732,490.363µs 540,450.572µs 885,298.073µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times