All knucleotide problem benchmarks

Current benchmark data was generated on Sun Jul 13 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 4.3ms 23.6MB 400ms 10ms gcc 15.1.0
rust 8-m.rs 227ms 16ms 27.6MB 660ms 13ms rustc 1.88.0
c 1-m.c 295ms 5.0ms 25.7MB 1007ms 33ms clang 14.0.0-1ubuntu1.1
zig 1-m.zig 318ms 0.8ms 67.1MB 840ms 23ms zig 0.14.1
rust 8.rs 411ms 5.1ms 24.2MB 390ms 7ms rustc 1.88.0
csharp 6-m.cs 459ms 14ms 46.3MB 1217ms 20ms dotnet/aot 9.0.302
zig 1.zig 499ms 2.8ms 28.0MB 477ms 13ms zig 0.14.1
d 1-m.d 643ms 26ms 48.5MB 2040ms 13ms ldc2 1.41.0
go 7-m.go 703ms 41ms 40.2MB 2410ms 30ms go 1.24.5
csharp 6-m.cs 748ms 18ms 68.5MB 2110ms 23ms dotnet 9.0.302
chapel 3-m.chpl 758ms 2.5ms 86.9MB 1433ms 10ms chpl 1.31.0
csharp 6-m.cs 1011ms 2.7ms 66.6MB 2913ms 20ms mono 6.12.0
java 3-m.java 1030ms 58ms 127.6MB 3553ms 33ms openjdk 21
dart 3-m.dart 1077ms 24ms 279.2MB 3200ms 120ms dart/exe 3.8.1
java 3-m.java 1084ms 15ms 158.2MB 3720ms 43ms openjdk 23
java 3-m.java 1100ms 49ms 179.0MB 3693ms 73ms graal/jvm 17.0.8
swift 2-m.swift 1361ms 16ms 74.3MB 4960ms 37ms swift 6.1.2
java 3-m.java 1449ms 55ms 179.3MB 4600ms 200ms openjdk/zgc 21
d 1-m.d 1937ms 33ms 50.0MB 5567ms 10ms dmd 2.111.0
python 3-m.py 2341ms 4.1ms 136.0MB 7903ms 333ms pypy 3.11.13
python 3-m.py 3129ms 44ms 34.2MB 11863ms 123ms pyston 3.8.12
python 3.py timeout 0.0ms 35.8MB 90ms 20ms 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 28ms 0.6ms 12.6MB 57ms 0ms gcc 15.1.0
rust 8-m.rs 33ms 3.8ms 15.8MB 60ms 7ms rustc 1.88.0
c 1-m.c 37ms 1.7ms 15.0MB 107ms 0ms clang 14.0.0-1ubuntu1.1
rust 8.rs 57ms 3.0ms 11.6MB 40ms 3ms rustc 1.88.0
zig 1-m.zig 65ms 1.8ms 54.3MB 133ms 33ms zig 0.14.1
zig 1.zig 66ms 2.2ms 15.4MB 50ms 3ms zig 0.14.1
csharp 6-m.cs 91ms 6.2ms 34.7MB 153ms 13ms dotnet/aot 9.0.302
d 1-m.d 95ms 8.6ms 39.5MB 253ms 23ms ldc2 1.41.0
chapel 3-m.chpl 117ms 1.8ms 87.0MB 203ms 3ms chpl 1.31.0
go 7-m.go 129ms 2.0ms 24.0MB 343ms 20ms go 1.24.5
csharp 6-m.cs 178ms 6.7ms 57.0MB 263ms 30ms dotnet 9.0.302
csharp 6-m.cs 199ms 4.8ms 55.2MB 377ms 20ms mono 6.12.0
d 1-m.d 211ms 7.1ms 39.9MB 597ms 10ms dmd 2.111.0
dart 3-m.dart 225ms 5.9ms 187.2MB 530ms 70ms dart/exe 3.8.1
swift 2-m.swift 251ms 2.0ms 60.0MB 663ms 30ms swift 6.1.2
java 3-m.java 338ms 53ms 96.3MB 993ms 50ms openjdk 21
java 3-m.java 341ms 21ms 136.0MB 907ms 60ms graal/jvm 17.0.8
java 3-m.java 345ms 34ms 88.9MB 1023ms 40ms openjdk 23
python 3-m.py 390ms 0.6ms 76.7MB 980ms 150ms pypy 3.11.13
python 3-m.py 395ms 4.5ms 14.3MB 1297ms 80ms pyston 3.8.12
java 3-m.java 426ms 6.6ms 98.2MB 890ms 170ms openjdk/zgc 21
python 3-m.py 660ms 11ms 15.2MB 2320ms 67ms cpython 3.13.5