Benchmarks

Windows Benchmark: pow(x, y) (1K)

Benchmark the performance of the pow function, using decimal numbers.

number math 1K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 GraalVM 1.528µs 1.400µs 1.700µs
2 C++ (G++) 39.292µs 29.900µs 216.200µs
3 C++ (Clang++) 39.848µs 35.200µs 90.900µs
4 Rust 47.928µs 46.400µs 71.200µs
5 C (Clang) 69.092µs 30.900µs 866.600µs
6 Java 81.740µs 75.500µs 117.800µs
7 C (GCC) 91.908µs 31.400µs 1,470.300µs
8 JavaScript (Deno) 179.276µs 158.600µs 240.400µs
9 D 182.468µs 165.100µs 214.700µs
10 Zig 192.532µs 176.000µs 227.800µs
11 Kotlin (Native) 205.360µs 131.500µs 917.000µs
12 PHP 223.760µs 130.000µs 1,200.100µs
13 JavaScript (Node) 226.284µs 198.700µs 392.000µs
14 Python 504.544µs 418.100µs 618.600µs
15 Go 520.420µs 0.000µs 8,565.500µs
16 Ruby 628.156µs 362.900µs 3,659.200µs
17 Kotlin (JVM) 898.004µs 685.500µs 1,635.500µs
18 JavaScript (Bun) 77,388.684µs 26,786.500µs 246,269.600µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times