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 C++ (Clang++) 5.104µs 4.500µs 5.900µs
2 PHP 6.096µs 4.300µs 7.400µs
3 Rust 9.832µs 8.500µs 12.000µs
4 C++ (G++) 9.876µs 8.500µs 13.000µs
5 C (GCC) 15.092µs 14.000µs 16.300µs
6 GraalVM 15.224µs 11.200µs 34.900µs
7 Python 16.912µs 12.800µs 43.300µs
8 Ruby 18.072µs 14.800µs 20.800µs
9 C (Clang) 40.440µs 34.600µs 143.500µs
10 Go 79.820µs 0.000µs 1,995.500µs
11 JavaScript (Node) 95.756µs 54.900µs 537.600µs
12 Zig 200.760µs 140.600µs 811.400µs
13 JavaScript (Bun) 433.704µs 276.700µs 2,050.200µs
14 Kotlin (Native) 672.124µs 456.000µs 3,303.400µs
15 Java 682.236µs 495.000µs 1,359.000µs
16 JavaScript (Deno) 882.528µs 294.300µs 5,253.900µs
17 Kotlin (JVM) 153,604.620µs 40,642.800µs 420,587.500µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times