Benchmarks

Linux Benchmark: pow(x, y) (10K)

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

number math 10K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 GraalVM 14.741µs 13.926µs 31.428µs
2 Kotlin (Native) 796.126µs 352.281µs 6,280.230µs
3 Go 1,121.435µs 902.414µs 5,470.264µs
4 Zig 3,340.816µs 501.722µs 23,938.287µs
5 C (Clang) 7,200.503µs 224.951µs 49,472.699µs
6 C (GCC) 9,121.838µs 219.833µs 63,637.211µs
7 C++ (Clang++) 9,485.836µs 223.650µs 78,254.771µs
8 Java 9,830.767µs 629.181µs 83,048.034µs
9 C++ (G++) 14,293.520µs 226.816µs 68,780.314µs
10 Rust 22,581.397µs 340.649µs 63,540.829µs
11 JavaScript (Deno) 34,134.928µs 1,544.020µs 72,707.784µs
12 Kotlin (JVM) 34,641.092µs 1,157.011µs 76,759.171µs
13 D 44,623.052µs 1,536.600µs 82,763.200µs
14 JavaScript (Bun) 48,025.483µs 3,105.174µs 103,106.534µs
15 Ruby 56,128.737µs 1,871.191µs 78,985.840µs
16 JavaScript (Node) 62,614.842µs 40,940.638µs 92,370.922µs
17 Python 83,457.123µs 45,978.166µs 145,230.870µs
18 PHP 154,214.817µs 112,724.340µs 237,910.893µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times