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) | 2.690µs | 2.385µs | 4.244µs |
2 | C (GCC) | 10.775µs | 10.377µs | 12.175µs |
3 | Go | 11.920µs | 11.000µs | 13.000µs |
4 | C++ (G++) | 12.400µs | 11.000µs | 13.000µs |
5 | C (Clang) | 16.660µs | 16.059µs | 17.358µs |
6 | C++ (Clang++) | 16.915µs | 16.288µs | 18.162µs |
7 | Rust | 18.000µs | 17.000µs | 23.000µs |
8 | JavaScript (Deno) | 96.068µs | 86.388µs | 123.513µs |
9 | PHP | 107.631µs | 91.031µs | 376.851µs |
10 | Ruby | 137.880µs | 126.000µs | 257.000µs |
11 | Python | 305.280µs | 167.000µs | 3,307.000µs |
12 | Java | 18,200.006µs | 1,332.388µs | 382,274.936µs |
13 | JavaScript (Bun) | 18,244.670µs | 149.086µs | 409,268.405µs |
14 | JavaScript (Node) | 40,367.109µs | 83.005µs | 1,006,738.900µs |
15 | Kotlin (JVM) | 88,798.442µs | 1,654.323µs | 764,596.213µs |