Benchmarks

Benchmark: sqrt(x) (1K)

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

number math 1K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Go 0.000µs 0.000µs 0.000µs
2 C (GCC) 6.444µs 5.900µs 7.300µs
3 C (Clang) 6.492µs 3.900µs 48.100µs
4 C++ (G++) 8.912µs 8.000µs 10.400µs
5 C++ (Clang++) 10.716µs 7.000µs 66.500µs
6 Rust 13.060µs 10.700µs 38.000µs
7 Kotlin (Native) 18.040µs 12.400µs 70.200µs
8 Java 43.656µs 31.800µs 108.500µs
9 PHP 81.232µs 50.500µs 546.500µs
10 JavaScript (Node) 84.624µs 68.000µs 132.900µs
11 JavaScript (Deno) 99.684µs 75.600µs 348.800µs
12 Python 209.908µs 185.100µs 246.800µs
13 Ruby 226.988µs 133.300µs 1,222.900µs
14 Kotlin (JVM) 792.012µs 564.500µs 2,169.200µs
15 JavaScript (Bun) 77,586.212µs 18,049.600µs 139,562.100µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times