Benchmarks

Linux 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.913µs 3.436µs 4.899µs
2 Go 22.641µs 21.451µs 36.309µs
3 C (GCC) 31.069µs 28.855µs 34.715µs
4 C (Clang) 31.617µs 29.886µs 48.141µs
5 GraalVM 53.621µs 47.690µs 127.722µs
6 Zig 110.201µs 50.115µs 1,536.152µs
7 C++ (Clang++) 1,983.160µs 32.021µs 48,769.795µs
8 JavaScript (Bun) 2,109.363µs 431.670µs 41,691.506µs
9 Rust 2,711.203µs 37.421µs 42,003.942µs
10 JavaScript (Deno) 4,669.237µs 110.409µs 66,098.271µs
11 Ruby 4,958.104µs 172.587µs 94,900.495µs
12 Python 5,560.046µs 198.245µs 73,732.705µs
13 C++ (G++) 5,724.952µs 30.478µs 67,349.500µs
14 JavaScript (Node) 7,235.391µs 97.685µs 101,253.631µs
15 PHP 9,087.092µs 307.654µs 97,110.493µs
16 Java 27,040.432µs 1,077.844µs 65,006.074µs
17 Kotlin (JVM) 43,754.476µs 1,720.572µs 88,038.925µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times