Swift VS Acton benchmarks

Current benchmark data was generated on Thu May 04 2023, 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.)

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 3088ms 73ms 52.6MB 3047ms 17ms swift 5.8.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 275ms 12ms 10.4MB 260ms 0ms swift 5.8.0

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 2953ms 27ms 2.3MB 2937ms 0ms swift 5.8.0

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 260ms 6.7ms 2.3MB 240ms 0ms swift 5.8.0

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 3-m.swift 273ms 1.7ms 22.9MB 460ms 7ms swift 5.8.0

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 3.swift 50ms 5.3ms 14.5MB 47ms 0ms swift 5.8.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 1.swift 2.8ms 1.1ms 2.4MB 0ms 0ms swift 5.8.0
acton 1.act 5.1ms 2.3ms 7.6MB 0ms 0ms actonc 0.15.0

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 2-m.swift 2272ms 84ms 44.5MB 4150ms 73ms swift 5.8.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 2-m.swift 417ms 4.5ms 33.3MB 687ms 23ms swift 5.8.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 7.swift 461ms 7.1ms 5.3MB 450ms 0ms swift 5.8.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
swift 7.swift 49ms 1.2ms 5.3MB 40ms 0ms swift 5.8.0

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 4678ms 101ms 16.2MB 5003ms 950ms actonc 0.15.0
swift 1.swift timeout 0.0ms 6.7MB 4967ms 13ms swift 5.8.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 1325ms 199ms 18.5MB 1337ms 263ms actonc 0.15.0
swift 1.swift 2422ms 2.6ms 6.3MB 2403ms 3ms swift 5.8.0