Benchmarks

Windows 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 0.000µs 0.000µs 0.000µs
2 C++ (Clang++) 5.016µs 4.600µs 5.800µs
3 PHP 6.176µs 5.200µs 7.800µs
4 C++ (G++) 8.300µs 7.500µs 9.000µs
5 GraalVM 12.324µs 10.500µs 22.000µs
6 D 17.584µs 7.800µs 214.200µs
7 Ruby 20.292µs 15.900µs 24.000µs
8 C (GCC) 23.448µs 15.100µs 161.000µs
9 Rust 29.316µs 9.800µs 471.200µs
10 C (Clang) 53.168µs 34.000µs 346.700µs
11 JavaScript (Node) 73.828µs 58.000µs 132.700µs
12 Python 93.184µs 13.500µs 1,052.400µs
13 Zig 175.960µs 131.600µs 807.200µs
14 JavaScript (Deno) 373.148µs 275.400µs 951.500µs
15 Java 779.508µs 523.900µs 3,868.200µs
16 JavaScript (Bun) 847.968µs 254.100µs 1,816.300µs
17 Kotlin (Native) 1,078.096µs 434.200µs 6,273.200µs
18 Kotlin (JVM) 105,565.136µs 37,076.600µs 322,406.000µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times