Benchmarks

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.824µs 3.377µs 4.388µs
2 Go 22.111µs 21.300µs 36.488µs
3 C (Clang) 31.747µs 30.096µs 45.074µs
4 C (GCC) 32.009µs 29.966µs 48.140µs
5 C++ (G++) 33.595µs 31.860µs 36.158µs
6 Rust 82.361µs 38.773µs 1,078.665µs
7 Ruby 1,290.559µs 168.747µs 27,884.146µs
8 JavaScript (Deno) 2,416.993µs 107.302µs 57,466.006µs
9 JavaScript (Bun) 3,354.926µs 383.370µs 42,500.764µs
10 PHP 3,739.810µs 304.885µs 41,833.838µs
11 C++ (Clang++) 3,745.765µs 32.221µs 53,358.177µs
12 JavaScript (Node) 4,244.499µs 101.511µs 49,798.260µs
13 Python 4,682.848µs 204.263µs 53,595.918µs
14 Java 22,785.915µs 1,111.256µs 71,121.184µs
15 Kotlin (JVM) 53,096.634µs 1,591.928µs 119,010.999µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times