Benchmarks

Windows 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 GraalVM 78.268µs 61.800µs 336.000µs
2 D 108.668µs 94.300µs 424.800µs
3 C (GCC) 699.428µs 438.200µs 2,136.600µs
4 C (Clang) 704.376µs 394.600µs 5,517.500µs
5 Zig 720.860µs 607.900µs 1,592.400µs
6 C++ (G++) 1,012.624µs 664.800µs 6,850.700µs
7 C++ (Clang++) 1,130.356µs 649.800µs 4,543.700µs
8 Rust 1,373.444µs 1,017.900µs 3,193.500µs
9 Kotlin (Native) 1,689.928µs 1,020.700µs 7,461.600µs
10 JavaScript (Deno) 4,196.920µs 3,078.100µs 7,795.600µs
11 JavaScript (Node) 4,273.816µs 2,319.700µs 17,303.200µs
12 Java 4,884.676µs 1,960.000µs 25,775.600µs
13 Go 10,927.584µs 0.000µs 257,786.600µs
14 Ruby 13,808.680µs 11,896.600µs 19,376.200µs
15 PHP 27,167.768µs 4,465.200µs 77,725.000µs
16 Kotlin (JVM) 41,883.864µs 2,845.900µs 886,366.500µs
17 Python 56,213.144µs 30,243.300µs 94,262.100µs
18 JavaScript (Bun) 104,535.484µs 50,449.400µs 219,490.600µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times