Swift VS Acton 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.)

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 2999ms 0.1ms 5.1MB 2990ms 0ms swift 5.7.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 253ms 0.3ms 2.4MB 240ms 0ms swift 5.7.1

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 3-m.swift 255ms 5.3ms 21.1MB 430ms 7ms swift 5.7.1

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 3.swift 48ms 3.0ms 14.6MB 47ms 0ms swift 5.7.1

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 4.3ms 0.8ms 2.4MB 0ms 0ms swift 5.7.1
acton 1.act 5.2ms 3.9ms 3.1MB 0ms 0ms actonc 0.14.2

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 2-m.swift 2201ms 206ms 50.7MB 3723ms 43ms swift 5.7.1

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 2-m.swift 346ms 12ms 31.6MB 563ms 23ms swift 5.7.1

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 7.swift 447ms 0.3ms 5.1MB 440ms 0ms swift 5.7.1

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 7.swift 48ms 0.5ms 5.1MB 40ms 0ms swift 5.7.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 4902ms 85ms 7.8MB 4477ms 777ms actonc 0.14.2
swift 1.swift timeout 0.0ms 0.0MB 0ms 0ms swift 5.7.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 1475ms 7.3ms 6.4MB 1327ms 277ms actonc 0.14.2
swift 1.swift 2747ms 1.8ms 6.2MB 2733ms 0ms swift 5.7.1