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 C (Clang) 587.020µs 425.500µs 1,326.900µs
2 C++ (G++) 999.024µs 654.800µs 4,628.800µs
3 C (GCC) 1,140.388µs 436.600µs 4,695.900µs
4 Go 1,356.136µs 0.000µs 11,986.700µs
5 C++ (Clang++) 1,774.672µs 708.100µs 17,094.300µs
6 Rust 1,804.696µs 1,053.000µs 9,791.700µs
7 Kotlin (Native) 2,232.036µs 1,000.300µs 14,522.200µs
8 Java 2,417.580µs 2,106.800µs 3,795.400µs
9 Kotlin (JVM) 7,694.220µs 2,795.400µs 73,803.400µs
10 JavaScript (Node) 17,455.276µs 1,863.300µs 85,575.200µs
11 Ruby 23,627.024µs 12,548.400µs 72,059.900µs
12 PHP 49,277.924µs 4,621.100µs 100,890.000µs
13 JavaScript (Deno) 52,348.312µs 3,120.400µs 290,630.800µs
14 Python 65,204.948µs 21,973.200µs 120,572.800µs
15 JavaScript (Bun) 143,732.492µs 35,498.500µs 263,643.300µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times