All coro-prime-sieve problem benchmarks

Current benchmark data was generated on Fri Dec 09 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (Model 85)

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

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua 575ms 4.4ms 5.1MB 560ms 0ms luajit 2.1.0-beta3
go 1-m.go 833ms 18ms 13.6MB 1620ms 3ms go 1.19.4
rust 3-m.rs 973ms 63ms 6.2MB 1843ms 37ms rustc 1.65.0
rust 5-m.rs 1121ms 91ms 5.2MB 2153ms 27ms rustc 1.65.0
python 1.py 1264ms 42ms 230.0MB 1163ms 90ms pypy 3.9.15
wasm 3.rs 1451ms 13ms 49.9MB 1483ms 10ms node 16.18.1
rust 3.rs 1806ms 10ms 6.2MB 1760ms 30ms rustc 1.65.0
wasm 3.rs 1860ms 9.8ms 12.7MB 1843ms 0ms wasmtime 3.0.1
crystal 1.cr 2008ms 3.3ms 20.2MB 1957ms 33ms crystal 1.6.2
typescript 1.ts 2035ms 49ms 72.9MB 2020ms 17ms deno 1.28.3
wasm 3.rs 2059ms 5.0ms 18.5MB 2040ms 3ms wasmedgec 0.11.2
go 1.go 2147ms 9.1ms 255.8MB 2063ms 67ms tinygo 0.25.0
javascript 1.js 2491ms 19ms 83.4MB 2537ms 43ms node 19.2.0
kotlin 2-m.kt 2780ms 101ms 156.9MB 5240ms 100ms kotlin/jvm 17.0.2
rust 4.rs 2994ms 7.6ms 4.3MB 2983ms 0ms rustc 1.65.0
kotlin 1.kt 3095ms 73ms 161.4MB 3870ms 103ms kotlin/jvm 17.0.2
rust 1-m.rs 3147ms 43ms 4.9MB 6093ms 80ms rustc 1.65.0
ruby 1.rb 3406ms 77ms 336.8MB 3203ms 183ms ruby/yjit 3.1.3
java 1-m.java 3437ms 105ms 198.7MB 6510ms 107ms openjdk 19
javascript 1.js 3736ms 3.6ms 115.3MB 3750ms 40ms bun 0.3.0
chapel 1-m.chpl 3842ms 71ms 57.6MB 7450ms 47ms chpl 1.28.0
java 1-m.java 4140ms 61ms 948.2MB 7270ms 600ms openjdk/zgc 19
ruby 1.rb 4759ms 65ms 80.1MB 4690ms 53ms ruby 3.1.3
csharp 1.cs timeout 0.0ms 0.0MB 0ms 0ms dotnet 7.0.100
csharp 1.cs timeout 0.0ms 0.0MB 0ms 0ms dotnet/aot 7.0.100
d 1.d timeout 0.0ms 0.0MB 0ms 0ms dmd 2.101.0
d 1.d timeout 0.0ms 0.0MB 0ms 0ms ldc2 1.30.0
dart 1.dart timeout 0.0ms 0.0MB 0ms 0ms dart/exe 2.18.5
java 1.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 20
kotlin 1.kt timeout 0.0ms 0.0MB 0ms 0ms kotlin/native 1.7.22
kotlin 2-m.kt timeout 0.0ms 0.0MB 0ms 0ms kotlin/native 1.7.22
nim 1.nim timeout 0.0ms 0.0MB 0ms 0ms nim/clang 1.6.10
nim 1.nim timeout 0.0ms 0.0MB 0ms 0ms nim 1.6.10
python 1.py timeout 0.0ms 0.0MB 0ms 0ms cpython 3.11.1
python 1.py timeout 0.0ms 0.0MB 0ms 0ms pyston 3.8.12
ruby 1.rb timeout 0.0ms 0.0MB 0ms 0ms truffleruby 22.3.0
v 1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2
v 1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang 0.3.2

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
lua 1.lua 36ms 1.6ms 3.1MB 20ms 0ms luajit 2.1.0-beta3
go 1-m.go 61ms 12ms 5.4MB 103ms 0ms go 1.19.4
rust 3-m.rs 92ms 16ms 2.8MB 150ms 3ms rustc 1.65.0
rust 5-m.rs 107ms 26ms 2.9MB 177ms 10ms rustc 1.65.0
rust 3.rs 115ms 2.7ms 3.1MB 103ms 0ms rustc 1.65.0
crystal 1.cr 116ms 0.5ms 7.3MB 93ms 10ms crystal 1.6.2
wasm 3.rs 123ms 0.3ms 12.0MB 110ms 3ms wasmtime 3.0.1
wasm 3.rs 138ms 0.3ms 17.4MB 130ms 0ms wasmedgec 0.11.2
typescript 1.ts 169ms 2.2ms 45.0MB 153ms 10ms deno 1.28.3
rust 4.rs 195ms 0.3ms 2.3MB 183ms 0ms rustc 1.65.0
wasm 3.rs 205ms 1.3ms 47.8MB 243ms 10ms node 16.18.1
rust 1-m.rs 216ms 2.6ms 2.9MB 390ms 10ms rustc 1.65.0
javascript 1.js 236ms 1.8ms 64.0MB 210ms 20ms node 19.2.0
python 1.py 266ms 3.4ms 87.9MB 230ms 20ms pypy 3.9.15
javascript 1.js 267ms 5.2ms 107.5MB 277ms 17ms bun 0.3.0
chapel 1-m.chpl 278ms 13ms 30.2MB 503ms 7ms chpl 1.28.0
ruby 1.rb 295ms 0.8ms 42.3MB 260ms 20ms ruby 3.1.3
go 1.go 297ms 1.7ms 66.8MB 270ms 13ms tinygo 0.25.0
csharp 1-m.cs 353ms 26ms 57.6MB 593ms 23ms dotnet/aot 7.0.100
ruby 1.rb 425ms 4.3ms 298.8MB 250ms 160ms ruby/yjit 3.1.3
dart 1.dart 548ms 4.4ms 15.3MB 517ms 17ms dart/exe 2.18.5
csharp 1-m.cs 576ms 68ms 143.5MB 813ms 60ms dotnet 7.0.100
kotlin 1-m.kt 721ms 15ms 100.0MB 1263ms 43ms kotlin/jvm 17.0.2
java 1-m.java 728ms 34ms 105.2MB 1293ms 40ms openjdk 20
java 1-m.java 765ms 58ms 113.7MB 1333ms 60ms openjdk 19
python 1.py 791ms 4.2ms 20.1MB 770ms 3ms cpython 3.11.1
kotlin 2-m.kt 816ms 14ms 33.0MB 1470ms 30ms kotlin/native 1.7.22
python 1.py 858ms 3.1ms 16.9MB 830ms 10ms pyston 3.8.12
kotlin 2-m.kt 937ms 51ms 101.5MB 1633ms 70ms kotlin/jvm 17.0.2
java 1-m.java 945ms 83ms 291.8MB 1393ms 203ms openjdk/zgc 19
kotlin 1.kt 1101ms 2.7ms 8.9MB 1250ms 10ms kotlin/native 1.7.22
d 1.d 1240ms 2.3ms 8.1MB 1227ms 3ms ldc2 1.30.0
d 1.d 1631ms 13ms 9.4MB 1613ms 3ms dmd 2.101.0
v 1-m.v 3508ms 766ms 20.9MB 3707ms 2843ms v/clang+gc 0.3.2
v 1-m.v 4052ms 517ms 17.4MB 4120ms 3287ms v/clang 0.3.2
nim 1.nim timeout 0.0ms 0.0MB 0ms 0ms nim/clang 1.6.10
nim 1.nim timeout 0.0ms 0.0MB 0ms 0ms nim 1.6.10
ruby 1.rb timeout 0.0ms 0.0MB 0ms 0ms truffleruby 22.3.0