All knucleotide problem benchmarks

Current benchmark data was generated on Mon Apr 14 2025, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
c 1-m.c 182ms 2.9ms 24.5MB 420ms 7ms gcc 14.2.0
rust 8-m.rs 227ms 1.7ms 26.6MB 660ms 7ms rustc 1.86.0
c 1-m.c 291ms 5.0ms 25.9MB 980ms 17ms clang 14.0.0-1ubuntu1.1
zig 1-m.zig 338ms 12ms 65.3MB 910ms 23ms zig 0.14.0
csharp 6-m.cs 445ms 3.9ms 46.0MB 1197ms 17ms dotnet/aot 9.0.203
rust 8.rs 468ms 3.0ms 22.3MB 450ms 0ms rustc 1.86.0
zig 1.zig 506ms 2.3ms 26.2MB 487ms 7ms zig 0.14.0
d 1-m.d 653ms 20ms 47.2MB 2180ms 13ms ldc2 1.40.1
go 7-m.go 679ms 5.3ms 41.5MB 2393ms 23ms go 1.24.2
chapel 3-m.chpl 747ms 5.0ms 87.0MB 1410ms 10ms chpl 1.31.0
csharp 6-m.cs 822ms 47ms 69.3MB 1833ms 30ms dotnet 9.0.203
csharp 6-m.cs 1007ms 15ms 64.5MB 2930ms 30ms mono 6.12.0
java 3-m.java 1010ms 47ms 129.8MB 3437ms 37ms openjdk 21
dart 3-m.dart 1093ms 17ms 274.3MB 3243ms 97ms dart/exe 3.7.2
java 3-m.java 1095ms 25ms 156.9MB 3717ms 67ms openjdk 23
java 3-m.java 1123ms 19ms 177.6MB 3827ms 70ms graal/jvm 17.0.8
swift 2-m.swift 1336ms 17ms 70.7MB 4880ms 30ms swift 6.1.0
java 3-m.java 1402ms 51ms 179.1MB 4423ms 200ms openjdk/zgc 21
d 1-m.d 1844ms 52ms 49.5MB 5630ms 17ms dmd 2.111.0
python 3-m.py 2479ms 7.2ms 136.3MB 8417ms 323ms pypy 3.10.16
python 3-m.py 3176ms 41ms 34.3MB 12123ms 117ms pyston 3.8.12
python 3.py timeout 0.0ms 35.7MB 93ms 20ms cpython 3.13.3

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
c 1-m.c 28ms 2.9ms 12.1MB 63ms 0ms gcc 14.2.0
rust 8-m.rs 30ms 3.1ms 16.4MB 67ms 0ms rustc 1.86.0
c 1-m.c 35ms 0.6ms 15.1MB 100ms 0ms clang 14.0.0-1ubuntu1.1
rust 8.rs 58ms 1.1ms 11.6MB 47ms 0ms rustc 1.86.0
zig 1-m.zig 66ms 2.0ms 54.3MB 140ms 27ms zig 0.14.0
zig 1.zig 67ms 2.4ms 15.3MB 53ms 0ms zig 0.14.0
d 1-m.d 90ms 7.2ms 39.9MB 250ms 10ms ldc2 1.40.1
csharp 6-m.cs 93ms 0.8ms 36.5MB 160ms 17ms dotnet/aot 9.0.203
chapel 3-m.chpl 115ms 1.9ms 86.9MB 197ms 3ms chpl 1.31.0
go 7-m.go 130ms 3.5ms 22.2MB 343ms 17ms go 1.24.2
csharp 6-m.cs 197ms 3.9ms 58.2MB 383ms 17ms mono 6.12.0
csharp 6.cs 197ms 3.4ms 57.7MB 260ms 30ms dotnet 9.0.203
dart 3-m.dart 204ms 3.3ms 195.2MB 510ms 63ms dart/exe 3.7.2
d 1-m.d 211ms 8.5ms 40.0MB 597ms 10ms dmd 2.111.0
swift 2-m.swift 248ms 2.1ms 60.0MB 663ms 23ms swift 6.1.0
java 3-m.java 346ms 19ms 139.5MB 977ms 53ms graal/jvm 17.0.8
java 3-m.java 346ms 13ms 101.8MB 1000ms 40ms openjdk 21
java 3-m.java 346ms 17ms 89.2MB 1033ms 43ms openjdk 23
python 3-m.py 389ms 2.2ms 75.7MB 997ms 157ms pypy 3.10.16
python 3-m.py 395ms 1.5ms 14.3MB 1307ms 67ms pyston 3.8.12
java 3-m.java 436ms 1.7ms 98.6MB 903ms 170ms openjdk/zgc 21
python 3-m.py 691ms 2.2ms 15.2MB 2443ms 60ms cpython 3.13.3