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 2.720µs 2.000µs 5.000µs
2 C++ (Clang++) 4.593µs 3.684µs 7.729µs
3 PHP 5.975µs 4.451µs 15.373µs
4 Rust 8.360µs 7.000µs 13.000µs
5 C++ (G++) 9.000µs 8.000µs 15.000µs
6 C (GCC) 11.200µs 9.609µs 26.183µs
7 GraalVM 11.981µs 8.656µs 40.420µs
8 Python 13.840µs 11.000µs 27.000µs
9 Ruby 19.000µs 10.000µs 144.000µs
10 C (Clang) 19.249µs 18.587µs 25.353µs
11 D 56.904µs 45.400µs 124.600µs
12 JavaScript (Node) 77.127µs 55.255µs 303.024µs
13 Kotlin (Native) 99.121µs 55.285µs 971.669µs
14 Zig 133.520µs 117.000µs 191.000µs
15 JavaScript (Bun) 250.195µs 178.671µs 714.418µs
16 JavaScript (Deno) 277.496µs 225.373µs 483.954µs
17 Java 42,760.828µs 334.261µs 1,039,665.687µs
18 Kotlin (JVM) 749,596.354µs 21,343.462µs 2,444,876.259µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times