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.390µs 1.813µs 2.945µs
2 GraalVM 4.218µs 3.536µs 5.550µs
3 PHP 6.240µs 4.448µs 33.344µs
4 Rust 7.174µs 2.675µs 10.460µs
5 Ruby 9.025µs 7.314µs 11.272µs
6 C++ (G++) 12.408µs 10.781µs 21.901µs
7 Python 13.288µs 9.999µs 19.447µs
8 C++ (Clang++) 14.994µs 11.932µs 34.545µs
9 C (Clang) 52.518µs 45.125µs 102.825µs
10 Zig 182.476µs 160.885µs 212.394µs
11 JavaScript (Node) 625.953µs 53.562µs 14,140.045µs
12 JavaScript (Bun) 1,142.260µs 194.549µs 14,554.373µs
13 C (GCC) 2,809.132µs 25.007µs 69,543.355µs
14 Kotlin (Native) 5,601.249µs 423.831µs 73,959.507µs
15 JavaScript (Deno) 9,968.840µs 243.591µs 73,669.950µs
16 Java 12,292.970µs 397.038µs 62,146.621µs
17 Kotlin (JVM) 687,269.168µs 440,086.686µs 1,034,278.377µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times