All knucleotide problem benchmarks

Current benchmark data was generated on Thu Jul 13 2023, full log can be found HERE


[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (Model 106)

* -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.)


Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
c 1-m.c 251ms 3.8ms 23.5MB 417ms 13ms gcc 13.1.0
rust 318ms 4.0ms 27.9MB 563ms 10ms rustc 1.70.0
c 1-m.c 490ms 15ms 20.5MB 837ms 17ms clang 14.0.0
rust 548ms 0.9ms 23.7MB 530ms 7ms rustc 1.70.0
odin 1-m.odin 859ms 2.6ms 46.1MB 1507ms 33ms odin 2023
chapel 3-m.chpl 933ms 1.9ms 85.0MB 1723ms 13ms chpl 1.31.0
csharp 6-m.cs 971ms 8.0ms 51.8MB 1473ms 27ms dotnet/aot 7.0.306
zig 1.zig 1003ms 7.9ms 20.6MB 980ms 10ms zig 0.11.0-dev.3978+711b4e93e
d 1-m.d 1038ms 4.1ms 60.7MB 1817ms 17ms ldc2 1.32.2
java 1459ms 35ms 114.5MB 2660ms 40ms openjdk 20
java 1485ms 8.5ms 114.9MB 2710ms 33ms openjdk 22
go 7-m.go 1492ms 12ms 45.7MB 2787ms 23ms go 1.20.6
java 1563ms 84ms 169.6MB 2880ms 53ms graal/jvm 17.0.7
csharp 6-m.cs 1667ms 172ms 68.9MB 2523ms 20ms mono 6.12.0
java 1945ms 74ms 171.7MB 3443ms 137ms openjdk/zgc 20
swift 2-m.swift 2297ms 447ms 52.2MB 3860ms 20ms swift 5.8.1
dart 3-m.dart 2334ms 23ms 301.9MB 4020ms 117ms dart/exe 3.0.6
python 3506ms 21ms 213.7MB 6197ms 340ms pypy 3.10.12
csharp 6-m.cs 3820ms 672ms 73.4MB 7300ms 23ms dotnet 7.0.306
d 1-m.d 4015ms 70ms 53.4MB 7140ms 17ms dmd 2.104.1
python 4859ms 118ms 34.3MB 9207ms 73ms pyston 3.8.12
python timeout 0.0ms 35.2MB 90ms 13ms cpython 3.11.4

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
c 1.c 35ms 1.5ms 12.8MB 43ms 0ms gcc 13.1.0
rust 44ms 1.8ms 16.0MB 57ms 3ms rustc 1.70.0
c 1-m.c 62ms 2.1ms 9.7MB 100ms 0ms clang 14.0.0
rust 71ms 1.1ms 11.4MB 57ms 0ms rustc 1.70.0
zig 1.zig 111ms 0.2ms 7.3MB 97ms 0ms zig 0.11.0-dev.3978+711b4e93e
d 1-m.d 134ms 3.5ms 38.6MB 217ms 10ms ldc2 1.32.2
csharp 6.cs 152ms 4.0ms 42.6MB 177ms 23ms dotnet/aot 7.0.306
chapel 3-m.chpl 163ms 3.3ms 76.4MB 270ms 10ms chpl 1.31.0
odin 1.odin 173ms 3.2ms 32.1MB 223ms 27ms odin 2023
go 7-m.go 226ms 12ms 24.8MB 357ms 23ms go 1.20.6
csharp 6.cs 233ms 3.9ms 51.1MB 310ms 10ms mono 6.12.0
swift 2-m.swift 357ms 7.2ms 31.5MB 603ms 13ms swift 5.8.1
dart 3-m.dart 398ms 7.3ms 199.7MB 590ms 70ms dart/exe 3.0.6
d 1-m.d 424ms 16ms 44.6MB 733ms 10ms dmd 2.104.1
java 457ms 23ms 84.8MB 763ms 17ms openjdk 20
java 462ms 17ms 86.8MB 783ms 13ms openjdk 22
java 465ms 26ms 134.9MB 763ms 43ms graal/jvm 17.0.7
java 476ms 21ms 94.0MB 710ms 93ms openjdk/zgc 20
csharp 6-m.cs 501ms 70ms 61.9MB 793ms 23ms dotnet 7.0.306
python 513ms 7.5ms 94.1MB 743ms 107ms pypy 3.10.12
python 562ms 2.8ms 17.9MB 987ms 30ms pyston 3.8.12
python 793ms 2.1ms 16.9MB 1430ms 30ms cpython 3.11.4