Benchmarks

Linux Benchmark: cbrt(x) (100K)

Benchmark the performance of the cbrt function, between 1 and 100,000.

number math 100K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Kotlin (Native) 1,127.044µs 337.508µs 19,376.739µs
2 Go 11,090.419µs 2,135.373µs 51,866.496µs
3 C (Clang) 56,782.957µs 2,435.816µs 94,295.546µs
4 C++ (Clang++) 59,780.293µs 10,575.661µs 100,706.657µs
5 C (GCC) 62,637.114µs 32,945.061µs 93,360.423µs
6 C++ (G++) 65,545.409µs 9,815.351µs 112,489.292µs
7 JavaScript (Deno) 71,904.237µs 11,286.503µs 165,290.141µs
8 JavaScript (Node) 82,943.109µs 14,096.939µs 164,015.077µs
9 Rust 85,203.415µs 37,106.706µs 132,753.750µs
10 GraalVM 107,563.845µs 67,943.474µs 159,353.603µs
11 JavaScript (Bun) 115,729.591µs 61,221.091µs 322,478.975µs
12 Zig 120,248.554µs 76,407.025µs 178,590.519µs
13 Kotlin (JVM) 221,950.899µs 172,184.368µs 310,446.814µs
14 Java 229,483.120µs 107,294.776µs 294,094.785µs
15 Ruby 393,129.366µs 236,532.861µs 532,137.154µs
16 Python 468,043.409µs 333,670.304µs 643,355.435µs
17 PHP 677,039.219µs 522,625.645µs 909,611.436µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times