Benchmarks

Windows Benchmark: cbrt(x) (1K)

Benchmark the performance of the cbrt function, between 1 and 1,000.

number math 1K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Kotlin (Native) 3.872µs 3.500µs 4.600µs
2 C (GCC) 45.568µs 37.100µs 116.800µs
3 D 47.696µs 46.500µs 49.200µs
4 C++ (Clang++) 48.972µs 45.100µs 127.200µs
5 Rust 50.020µs 45.900µs 85.600µs
6 C (Clang) 53.572µs 44.400µs 131.900µs
7 GraalVM 55.768µs 52.500µs 84.100µs
8 C++ (G++) 94.636µs 39.500µs 1,350.200µs
9 PHP 95.576µs 72.500µs 353.000µs
10 JavaScript (Node) 103.120µs 93.700µs 110.800µs
11 Zig 113.392µs 55.800µs 1,409.200µs
12 JavaScript (Deno) 117.024µs 104.100µs 155.100µs
13 Go 163.724µs 0.000µs 1,942.900µs
14 Ruby 200.644µs 171.200µs 501.200µs
15 Python 264.372µs 217.900µs 689.000µs
16 Kotlin (JVM) 7,422.268µs 1,668.000µs 62,998.200µs
17 Java 18,515.788µs 1,197.300µs 255,551.800µs
18 JavaScript (Bun) 78,525.132µs 33,891.700µs 204,547.900µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times