Benchmarks

Mac 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 Kotlin (Native) 41.744µs 36.035µs 94.406µs
2 C (Clang) 47.432µs 42.814µs 91.572µs
3 GraalVM 118.581µs 9.402µs 2,726.419µs
4 C++ (G++) 156.520µs 138.000µs 219.000µs
5 C (GCC) 159.254µs 142.103µs 208.919µs
6 C++ (Clang++) 233.298µs 226.800µs 270.832µs
7 Rust 239.440µs 208.000µs 350.000µs
8 Zig 524.600µs 418.000µs 2,303.000µs
9 Go 728.600µs 608.000µs 1,464.000µs
10 JavaScript (Deno) 1,457.824µs 1,041.987µs 2,317.301µs
11 D 1,676.700µs 1,537.400µs 2,292.700µs
12 Kotlin (JVM) 1,767.653µs 1,108.200µs 8,330.739µs
13 Python 3,846.680µs 2,902.000µs 7,903.000µs
14 JavaScript (Bun) 8,592.943µs 861.372µs 82,718.429µs
15 JavaScript (Node) 17,830.233µs 1,977.217µs 388,683.808µs
16 PHP 36,693.516µs 1,181.632µs 884,333.056µs
17 Ruby 45,319.600µs 1,985.000µs 1,072,633.000µs
18 Java 53,431.357µs 672.100µs 1,308,669.084µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times