Benchmarks

Mac 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) 327.644µs 171.408µs 3,348.484µs
2 C (GCC) 1,017.603µs 915.391µs 1,288.079µs
3 C++ (G++) 1,117.160µs 1,048.000µs 1,621.000µs
4 Go 1,181.560µs 1,089.000µs 1,494.000µs
5 C++ (Clang++) 1,467.883µs 1,417.644µs 1,722.634µs
6 C (Clang) 1,472.545µs 1,391.178µs 1,688.816µs
7 Rust 1,575.720µs 1,487.000µs 1,959.000µs
8 JavaScript (Deno) 2,536.830µs 1,933.413µs 6,022.606µs
9 JavaScript (Node) 3,070.320µs 2,518.020µs 7,424.412µs
10 Zig 4,644.680µs 4,381.000µs 5,360.000µs
11 GraalVM 24,555.079µs 2,513.223µs 526,672.111µs
12 JavaScript (Bun) 41,799.414µs 2,617.738µs 804,367.871µs
13 Python 80,221.000µs 16,539.000µs 803,936.000µs
14 PHP 101,764.916µs 6,500.997µs 789,214.445µs
15 Ruby 157,703.640µs 11,283.000µs 1,399,136.000µs
16 Kotlin (JVM) 313,606.148µs 6,271.295µs 1,336,799.751µs
17 Java 503,018.774µs 7,248.527µs 1,598,539.343µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times