All knucleotide problem benchmarks

Current benchmark data was generated on Mon Jun 23 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 176ms 0.8ms 23.2MB 403ms 10ms gcc 15.1.0
rust 8-m.rs 222ms 6.6ms 28.0MB 630ms 17ms rustc 1.87.0
c 1-m.c 315ms 16ms 25.7MB 1053ms 30ms clang 14.0.0-1ubuntu1.1
zig 1-m.zig 348ms 15ms 67.1MB 953ms 30ms zig 0.14.1
rust 8.rs 416ms 2.8ms 23.8MB 390ms 10ms rustc 1.87.0
csharp 6-m.cs 457ms 4.7ms 46.3MB 1220ms 20ms dotnet/aot 9.0.301
zig 1.zig 509ms 2.9ms 27.4MB 487ms 10ms zig 0.14.1
d 1-m.d 675ms 14ms 47.5MB 2167ms 10ms ldc2 1.41.0
go 7-m.go 676ms 7.8ms 38.9MB 2393ms 23ms go 1.24.4
chapel 3-m.chpl 762ms 5.2ms 99.0MB 1443ms 10ms chpl 1.31.0
csharp 6-m.cs 764ms 31ms 68.1MB 2080ms 33ms dotnet 9.0.301
csharp 6-m.cs 1009ms 11ms 64.3MB 2910ms 30ms mono 6.12.0
java 3-m.java 1018ms 58ms 127.5MB 3483ms 40ms openjdk 21
dart 3-m.dart 1096ms 28ms 269.2MB 3343ms 120ms dart/exe 3.8.1
java 3-m.java 1113ms 8.3ms 155.2MB 3807ms 50ms openjdk 23
java 3-m.java 1123ms 23ms 185.6MB 3840ms 63ms graal/jvm 17.0.8
swift 2-m.swift 1336ms 7.8ms 74.5MB 4920ms 33ms swift 6.1.2
java 3-m.java 1468ms 17ms 179.2MB 4637ms 217ms openjdk/zgc 21
d 1-m.d 1936ms 52ms 50.6MB 6107ms 10ms dmd 2.111.0
python 3-m.py 2416ms 17ms 136.5MB 8193ms 343ms pypy 3.10.16
python 3-m.py 3230ms 12ms 34.0MB 12220ms 127ms pyston 3.8.12
python 3.py timeout 0.0ms 35.8MB 90ms 17ms cpython 3.13.5

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
c 1-m.c 27ms 0.5ms 12.9MB 60ms 0ms gcc 15.1.0
rust 8-m.rs 33ms 2.4ms 16.5MB 67ms 0ms rustc 1.87.0
c 1-m.c 39ms 1.6ms 15.0MB 110ms 7ms clang 14.0.0-1ubuntu1.1
rust 8.rs 55ms 0.9ms 11.4MB 40ms 3ms rustc 1.87.0
zig 1.zig 67ms 1.9ms 15.4MB 50ms 7ms zig 0.14.1
zig 1-m.zig 70ms 2.7ms 54.3MB 147ms 33ms zig 0.14.1
d 1-m.d 95ms 3.5ms 38.7MB 263ms 7ms ldc2 1.41.0
csharp 6-m.cs 97ms 3.3ms 36.6MB 157ms 13ms dotnet/aot 9.0.301
chapel 3-m.chpl 116ms 1.6ms 87.0MB 203ms 3ms chpl 1.31.0
go 7-m.go 130ms 2.8ms 23.9MB 343ms 23ms go 1.24.4
csharp 6-m.cs 186ms 2.2ms 57.8MB 283ms 30ms dotnet 9.0.301
csharp 6-m.cs 199ms 5.6ms 50.9MB 380ms 23ms mono 6.12.0
d 1-m.d 211ms 8.5ms 40.9MB 643ms 13ms dmd 2.111.0
dart 3-m.dart 220ms 5.8ms 184.9MB 517ms 70ms dart/exe 3.8.1
swift 2-m.swift 254ms 1.1ms 60.0MB 663ms 30ms swift 6.1.2
java 3-m.java 319ms 27ms 98.1MB 923ms 40ms openjdk 23
java 3-m.java 330ms 18ms 99.7MB 960ms 37ms openjdk 21
python 3-m.py 385ms 3.1ms 75.7MB 973ms 157ms pypy 3.10.16
python 3-m.py 406ms 10ms 14.4MB 1347ms 73ms pyston 3.8.12
java 3-m.java 443ms 3.3ms 98.5MB 930ms 173ms openjdk/zgc 21
python 3-m.py 660ms 2.8ms 15.2MB 2327ms 63ms cpython 3.13.5
java 3-m.java 1394ms 302ms 258.9MB 5010ms 127ms graal/jvm 17.0.8