Benchmarks

Windows 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 GraalVM 0.792µs 0.700µs 0.900µs
2 D 1.024µs 1.000µs 1.100µs
3 C (Clang) 4.404µs 3.900µs 4.600µs
4 Zig 6.256µs 6.000µs 6.400µs
5 C (GCC) 6.428µs 5.100µs 10.900µs
6 Rust 10.580µs 10.100µs 11.400µs
7 C++ (G++) 11.972µs 7.500µs 43.700µs
8 Kotlin (Native) 13.256µs 12.700µs 14.100µs
9 C++ (Clang++) 18.256µs 6.600µs 289.500µs
10 Go 58.116µs 0.000µs 1,452.900µs
11 PHP 60.776µs 49.600µs 117.500µs
12 Java 83.020µs 32.600µs 1,045.500µs
13 JavaScript (Deno) 88.108µs 72.800µs 141.500µs
14 JavaScript (Node) 122.228µs 62.400µs 1,157.100µs
15 Ruby 164.432µs 131.600µs 526.800µs
16 Python 250.544µs 186.600µs 835.900µs
17 Kotlin (JVM) 2,261.968µs 620.900µs 37,654.700µs
18 JavaScript (Bun) 83,402.808µs 19,475.600µs 170,937.900µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times