Swift VS Chapel benchmarks

Current benchmark data was generated on Fri May 20 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

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

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 3451ms 12ms 5.4MB 3427ms 3ms swift 5.6.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 302ms 17ms 5.2MB 280ms 0ms swift 5.6.1

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 150ms 1.4ms 32.0MB 253ms 7ms chpl 1.26.0
swift 3-m.swift 369ms 4.6ms 21.0MB 663ms 7ms swift 5.6.1

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5.chpl 33ms 0.6ms 32.0MB 30ms 3ms chpl 1.26.0
swift 3.swift 64ms 15ms 14.6MB 60ms 0ms swift 5.6.1

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 7.3ms 9.6ms 4.8MB 0ms 0ms swift 5.6.1
chapel 1.chpl 18ms 0.9ms 32.4MB 8ms 3ms chpl 1.26.0

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 954ms 13ms 98.6MB 1727ms 27ms chpl 1.26.0
swift 2-m.swift 2306ms 390ms 54.4MB 3920ms 23ms swift 5.6.1

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 168ms 8.5ms 77.1MB 263ms 20ms chpl 1.26.0
swift 2-m.swift 385ms 25ms 33.7MB 637ms 10ms swift 5.6.1

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 363ms 1.3ms 32.4MB 350ms 0ms chpl 1.26.0
swift 7.swift 426ms 0.4ms 5.4MB 417ms 0ms swift 5.6.1

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 7.swift 55ms 14ms 5.4MB 40ms 0ms swift 5.6.1
chapel 2.chpl 56ms 0.5ms 32.4MB 50ms 0ms chpl 1.26.0

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 598ms 3.9ms 34.1MB 580ms 7ms chpl 1.26.0
swift 1.swift timeout 0.0ms 0.0MB 0ms 0ms swift 5.6.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 152ms 0.7ms 34.1MB 143ms 0ms chpl 1.26.0
swift 1.swift 3474ms 78ms 6.4MB 3450ms 0ms swift 5.6.1