All knucleotide problem benchmarks

Current benchmark data was generated on Wed Jan 22 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 184ms 11ms 26.4MB 420ms 10ms gcc 14.2.0
rust 8-m.rs 241ms 8.1ms 30.2MB 700ms 3ms rustc 1.84.0
c 1-m.c 291ms 2.0ms 29.6MB 997ms 27ms clang 14.0.0-1ubuntu1.1
csharp 6-m.cs 481ms 30ms 54.6MB 1310ms 20ms dotnet/aot 9.0.102
rust 8.rs 482ms 4.7ms 23.8MB 463ms 3ms rustc 1.84.0
d 1-m.d 634ms 17ms 50.2MB 2050ms 10ms ldc2 1.40.0
chapel 3-m.chpl 750ms 2.0ms 101.0MB 1407ms 10ms chpl 1.31.0
csharp 6-m.cs 761ms 32ms 77.6MB 2040ms 37ms dotnet 9.0.102
go 7-m.go 784ms 0.8ms 40.9MB 2790ms 30ms go 1.23.5
zig 1.zig 788ms 2.8ms 20.8MB 767ms 7ms zig 0.13.0
csharp 6-m.cs 999ms 25ms 64.5MB 2880ms 20ms mono 6.12.0
java 3-m.java 1038ms 48ms 155.0MB 3503ms 50ms openjdk 23
java 3-m.java 1040ms 74ms 127.6MB 3567ms 33ms openjdk 21
dart 3-m.dart 1072ms 16ms 278.9MB 3180ms 100ms dart/exe 3.6.1
java 3-m.java 1106ms 10ms 182.0MB 3770ms 73ms graal/jvm 17.0.8
swift 2-m.swift 1401ms 19ms 72.6MB 5030ms 33ms swift 6.0.3
java 3-m.java 1447ms 54ms 180.5MB 4570ms 197ms openjdk/zgc 21
d 1-m.d 1865ms 22ms 54.5MB 5627ms 17ms dmd 2.109.1
python 3-m.py 2529ms 31ms 138.0MB 8620ms 330ms pypy 3.10.14
python 3-m.py 3123ms 17ms 33.9MB 11820ms 127ms pyston 3.8.12
python 3.py timeout 0.0ms 35.1MB 97ms 13ms cpython 3.13.1

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
c 1-m.c 28ms 1.7ms 12.7MB 63ms 0ms gcc 14.2.0
rust 8-m.rs 32ms 2.6ms 16.2MB 63ms 7ms rustc 1.84.0
c 1-m.c 39ms 3.6ms 14.9MB 103ms 3ms clang 14.0.0-1ubuntu1.1
rust 8.rs 70ms 5.7ms 11.4MB 57ms 0ms rustc 1.84.0
zig 1.zig 89ms 1.6ms 7.5MB 73ms 0ms zig 0.13.0
csharp 6-m.cs 89ms 4.3ms 43.4MB 157ms 13ms dotnet/aot 9.0.102
d 1-m.d 112ms 9.7ms 40.9MB 253ms 23ms ldc2 1.40.0
chapel 3-m.chpl 122ms 1.7ms 81.1MB 197ms 10ms chpl 1.31.0
go 7-m.go 142ms 1.4ms 25.0MB 377ms 30ms go 1.23.5
csharp 6-m.cs 171ms 13ms 64.0MB 250ms 20ms dotnet 9.0.102
csharp 6-m.cs 193ms 0.8ms 49.5MB 377ms 13ms mono 6.12.0
d 1-m.d 199ms 5.6ms 41.9MB 597ms 23ms dmd 2.109.1
dart 3-m.dart 221ms 3.5ms 195.3MB 503ms 70ms dart/exe 3.6.1
swift 2-m.swift 262ms 2.8ms 63.8MB 687ms 20ms swift 6.0.3
java 3-m.java 316ms 23ms 102.0MB 920ms 40ms openjdk 21
java 3-m.java 335ms 7.7ms 137.4MB 883ms 73ms graal/jvm 17.0.8
java 3-m.java 338ms 27ms 87.0MB 1007ms 33ms openjdk 23
python 3-m.py 395ms 0.9ms 15.7MB 1303ms 67ms pyston 3.8.12
python 3-m.py 398ms 3.2ms 77.1MB 1017ms 157ms pypy 3.10.14
java 3-m.java 419ms 1.9ms 99.3MB 853ms 173ms openjdk/zgc 21
python 3-m.py 656ms 8.0ms 17.2MB 2300ms 57ms cpython 3.13.1