Benchmarks

Benchmark: sqrt(x) (100K)

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

number math 100K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Go 453.249µs 351.219µs 2,269.650µs
2 Kotlin (Native) 3,690.011µs 778.391µs 18,327.903µs
3 C (GCC) 6,934.086µs 405.792µs 38,953.424µs
4 C (Clang) 10,070.908µs 460.615µs 59,374.663µs
5 C++ (G++) 18,887.685µs 586.962µs 69,469.159µs
6 C++ (Clang++) 25,681.165µs 744.037µs 72,509.595µs
7 Rust 41,090.337µs 1,171.289µs 79,228.393µs
8 Java 49,760.182µs 23,985.209µs 70,979.956µs
9 JavaScript (Deno) 57,448.639µs 3,766.804µs 115,036.575µs
10 JavaScript (Node) 63,493.561µs 7,679.426µs 127,762.671µs
11 JavaScript (Bun) 66,549.067µs 25,036.368µs 142,403.638µs
12 Kotlin (JVM) 74,625.232µs 52,124.785µs 152,743.885µs
13 Ruby 285,343.563µs 228,021.169µs 370,579.721µs
14 Python 380,275.494µs 198,362.657µs 489,632.012µs
15 PHP 956,597.997µs 807,516.393µs 1,112,812.488µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times