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.124µs 4.700µs 5.900µs
3 PHP 6.168µs 4.900µs 7.500µs
4 D 9.220µs 7.700µs 11.400µs
5 C++ (G++) 9.388µs 7.500µs 38.800µs
6 Rust 13.180µs 9.900µs 56.400µs
7 GraalVM 15.532µs 10.400µs 98.000µs
8 C (GCC) 15.568µs 14.300µs 16.800µs
9 Python 18.812µs 12.300µs 42.400µs
10 Ruby 20.928µs 15.100µs 51.000µs
11 C (Clang) 37.116µs 34.700µs 62.400µs
12 JavaScript (Node) 75.388µs 53.200µs 317.400µs
13 Zig 176.532µs 134.000µs 669.500µs
14 JavaScript (Deno) 398.344µs 267.000µs 958.500µs
15 Java 641.304µs 479.900µs 854.900µs
16 JavaScript (Bun) 809.716µs 282.600µs 1,621.300µs
17 Kotlin (Native) 1,031.068µs 429.400µs 4,396.800µs
18 Kotlin (JVM) 123,481.312µs 36,809.300µs 574,404.500µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times