All knucleotide problem benchmarks

Current benchmark data was generated on Sun Jun 01 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 172ms 2.2ms 23.6MB 403ms 7ms gcc 15.1.0
rust 8-m.rs 218ms 8.0ms 26.9MB 633ms 10ms rustc 1.87.0
c 1-m.c 292ms 0.1ms 25.7MB 1000ms 27ms clang 14.0.0-1ubuntu1.1
zig 1-m.zig 314ms 1.1ms 66.5MB 827ms 30ms zig 0.14.1
rust 8.rs 410ms 12ms 24.3MB 390ms 10ms rustc 1.87.0
csharp 6-m.cs 481ms 13ms 47.1MB 1307ms 20ms dotnet/aot 9.0.300
zig 1.zig 500ms 5.4ms 28.0MB 483ms 7ms zig 0.14.1
d 1-m.d 622ms 16ms 47.8MB 2043ms 10ms ldc2 1.40.1
go 7-m.go 679ms 12ms 39.2MB 2393ms 20ms go 1.24.3
csharp 6-m.cs 714ms 22ms 68.3MB 1957ms 27ms dotnet 9.0.300
chapel 3-m.chpl 747ms 5.4ms 87.2MB 1417ms 10ms chpl 1.31.0
csharp 6-m.cs 1010ms 11ms 67.2MB 2927ms 23ms mono 6.12.0
java 3-m.java 1018ms 55ms 127.3MB 3503ms 40ms openjdk 21
java 3-m.java 1086ms 3.2ms 155.6MB 3727ms 50ms openjdk 23
dart 3-m.dart 1102ms 13ms 276.2MB 3277ms 130ms dart/exe 3.8.1
java 3-m.java 1105ms 0.4ms 179.8MB 3787ms 60ms graal/jvm 17.0.8
swift 2-m.swift 1326ms 10ms 74.3MB 4847ms 33ms swift 6.1.2
java 3-m.java 1432ms 7.3ms 178.7MB 4573ms 200ms openjdk/zgc 21
d 1-m.d 1876ms 46ms 58.6MB 5530ms 10ms dmd 2.111.0
python 3-m.py 2576ms 18ms 136.5MB 8740ms 333ms pypy 3.10.16
python 3-m.py 3287ms 36ms 34.0MB 12567ms 110ms pyston 3.8.12
python 3.py timeout 0.0ms 35.3MB 97ms 13ms 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 26ms 1.5ms 13.0MB 57ms 3ms gcc 15.1.0
rust 8-m.rs 29ms 1.5ms 16.3MB 60ms 7ms rustc 1.87.0
c 1-m.c 36ms 1.0ms 15.0MB 103ms 0ms clang 14.0.0-1ubuntu1.1
rust 8.rs 55ms 2.0ms 11.4MB 40ms 0ms rustc 1.87.0
zig 1-m.zig 63ms 0.5ms 54.3MB 123ms 33ms zig 0.14.1
zig 1.zig 66ms 1.0ms 15.5MB 50ms 0ms zig 0.14.1
d 1-m.d 86ms 1.1ms 38.8MB 243ms 13ms ldc2 1.40.1
csharp 6-m.cs 97ms 6.0ms 35.6MB 167ms 13ms dotnet/aot 9.0.300
chapel 3-m.chpl 113ms 1.0ms 87.0MB 200ms 0ms chpl 1.31.0
go 7-m.go 131ms 1.0ms 32.2MB 350ms 20ms go 1.24.3
csharp 6-m.cs 179ms 8.7ms 56.7MB 260ms 27ms dotnet 9.0.300
csharp 6-m.cs 193ms 3.0ms 60.0MB 377ms 20ms mono 6.12.0
dart 3-m.dart 213ms 1.6ms 186.5MB 513ms 67ms dart/exe 3.8.1
d 1-m.d 227ms 31ms 40.9MB 607ms 67ms dmd 2.111.0
swift 2-m.swift 249ms 1.6ms 60.1MB 660ms 27ms swift 6.1.2
java 3-m.java 312ms 16ms 87.7MB 900ms 40ms openjdk 23
java 3-m.java 324ms 22ms 88.1MB 953ms 37ms openjdk 21
java 3-m.java 330ms 18ms 135.0MB 900ms 50ms graal/jvm 17.0.8
python 3-m.py 399ms 1.9ms 75.8MB 1023ms 157ms pypy 3.10.16
python 3-m.py 410ms 3.4ms 14.2MB 1370ms 67ms pyston 3.8.12
java 3-m.java 431ms 1.7ms 98.2MB 893ms 170ms openjdk/zgc 21
python 3-m.py 663ms 5.8ms 15.2MB 2337ms 63ms cpython 3.13.3