Benchmarks

Mac 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.076µs 1.015µs 1.587µs
2 C (Clang) 4.389µs 4.311µs 4.591µs
3 Kotlin (Native) 4.465µs 3.833µs 7.451µs
4 C (GCC) 22.320µs 19.960µs 29.843µs
5 C++ (G++) 24.800µs 20.000µs 77.000µs
6 C++ (Clang++) 30.554µs 28.876µs 36.046µs
7 Rust 35.000µs 28.000µs 99.000µs
8 Go 86.040µs 61.000µs 300.000µs
9 Java 92.904µs 77.324µs 218.150µs
10 Zig 114.760µs 90.000µs 260.000µs
11 PHP 163.212µs 135.899µs 285.758µs
12 D 170.564µs 156.300µs 230.900µs
13 JavaScript (Deno) 196.787µs 153.140µs 323.115µs
14 JavaScript (Node) 226.501µs 188.705µs 456.868µs
15 Ruby 260.040µs 218.000µs 710.000µs
16 Python 419.160µs 301.000µs 1,807.000µs
17 Kotlin (JVM) 1,726.471µs 501.223µs 24,753.257µs
18 JavaScript (Bun) 23,861.377µs 201.462µs 282,123.135µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times