Benchmarks

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.360µs 2.000µs 3.000µs
2 C++ (Clang++) 4.599µs 4.219µs 4.949µs
3 PHP 8.510µs 5.911µs 57.028µs
4 C (GCC) 9.081µs 8.781µs 9.882µs
5 C++ (G++) 9.480µs 8.000µs 16.000µs
6 Ruby 10.240µs 9.000µs 11.000µs
7 Python 15.280µs 12.000µs 72.000µs
8 Rust 16.080µs 15.000µs 17.000µs
9 C (Clang) 18.935µs 18.390µs 19.500µs
10 Kotlin (Native) 79.107µs 71.664µs 177.809µs
11 JavaScript (Node) 207.151µs 180.052µs 390.244µs
12 JavaScript (Deno) 304.299µs 253.549µs 897.716µs
13 JavaScript (Bun) 313.630µs 168.650µs 1,895.458µs
14 Java 561.583µs 375.083µs 2,036.760µs
15 Kotlin (JVM) 468,715.866µs 20,631.419µs 1,905,044.494µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times