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 C++ (Clang++) 6.600µs 4.400µs 30.300µs
2 PHP 8.296µs 4.200µs 64.500µs
3 C++ (G++) 9.172µs 8.300µs 10.700µs
4 C (GCC) 12.840µs 12.000µs 14.600µs
5 Ruby 20.516µs 16.400µs 47.700µs
6 Rust 24.412µs 19.700µs 52.500µs
7 Python 25.448µs 15.600µs 129.200µs
8 C (Clang) 32.588µs 30.700µs 61.000µs
9 Go 40.044µs 0.000µs 1,001.100µs
10 JavaScript (Node) 290.968µs 230.200µs 379.600µs
11 JavaScript (Bun) 334.568µs 209.200µs 531.700µs
12 JavaScript (Deno) 585.132µs 297.300µs 4,387.500µs
13 Java 619.352µs 483.800µs 865.500µs
14 Kotlin (Native) 784.308µs 626.800µs 1,627.900µs
15 Kotlin (JVM) 175,820.320µs 56,752.500µs 594,240.400µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times