Benchmarks

Mac 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.006µs 1.938µs 2.189µs
2 C (GCC) 10.437µs 10.000µs 10.887µs
3 Go 11.440µs 11.000µs 12.000µs
4 C++ (G++) 12.480µs 11.000µs 26.000µs
5 C++ (Clang++) 16.326µs 15.799µs 17.151µs
6 Rust 17.640µs 17.000µs 22.000µs
7 C (Clang) 17.810µs 15.388µs 61.913µs
8 GraalVM 29.545µs 27.908µs 46.539µs
9 Zig 45.120µs 44.000µs 48.000µs
10 JavaScript (Node) 78.799µs 75.805µs 87.318µs
11 PHP 89.606µs 82.038µs 165.318µs
12 JavaScript (Deno) 95.022µs 88.484µs 114.801µs
13 Ruby 127.200µs 121.000µs 172.000µs
14 Python 206.880µs 157.000µs 588.000µs
15 Java 2,048.324µs 1,069.088µs 5,727.861µs
16 JavaScript (Bun) 14,147.765µs 140.149µs 329,636.176µs
17 Kotlin (JVM) 34,402.554µs 1,660.244µs 738,001.948µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times