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.036µs 1.851µs 2.944µs
2 D 10.808µs 9.600µs 20.600µs
3 C (GCC) 11.715µs 9.516µs 20.596µs
4 C++ (G++) 12.000µs 11.000µs 17.000µs
5 Go 13.120µs 10.000µs 36.000µs
6 C++ (Clang++) 15.612µs 13.893µs 17.032µs
7 C (Clang) 16.154µs 14.890µs 33.367µs
8 Rust 17.120µs 15.000µs 27.000µs
9 GraalVM 33.927µs 26.454µs 105.223µs
10 Zig 44.360µs 41.000µs 93.000µs
11 PHP 93.952µs 81.170µs 156.429µs
12 Ruby 140.440µs 116.000µs 259.000µs
13 JavaScript (Node) 149.838µs 71.321µs 1,764.295µs
14 Python 204.120µs 158.000µs 500.000µs
15 JavaScript (Bun) 1,966.952µs 129.566µs 21,516.614µs
16 Java 4,530.752µs 1,151.391µs 50,414.728µs
17 JavaScript (Deno) 43,077.117µs 80.767µs 1,074,542.384µs
18 Kotlin (JVM) 77,641.418µs 1,572.817µs 900,028.527µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times