All Swift benchmarks

Current benchmark data was generated on Wed Mar 22 2023, 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.)

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.swift 2735ms 9.4ms 52.6MB 2693ms 27ms swift 5.7.3

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.swift 239ms 1.8ms 10.4MB 227ms 0ms swift 5.7.3

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.swift 3400ms 23ms 2.4MB 3373ms 0ms swift 5.7.3

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.swift 284ms 0.4ms 2.4MB 270ms 0ms swift 5.7.3

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
3-m.swift 386ms 4.0ms 23.0MB 697ms 3ms swift 5.7.3

Input: 250000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
3.swift 57ms 1.7ms 14.6MB 60ms 0ms swift 5.7.3

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.swift 2.0ms 0.8ms 2.3MB 0ms 0ms swift 5.7.3

knucleotide

Input: 2500000_in

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2-m.swift 2217ms 94ms 42.5MB 4057ms 23ms swift 5.7.3

Input: 250000_in

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2-m.swift 378ms 3.8ms 31.4MB 647ms 10ms swift 5.7.3

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
7.swift 454ms 12ms 5.1MB 427ms 0ms swift 5.7.3

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
7.swift 54ms 1.1ms 5.1MB 40ms 0ms swift 5.7.3

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.swift timeout 0.0ms 6.7MB 4957ms 17ms swift 5.7.3

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.swift 2570ms 3.9ms 6.3MB 2553ms 3ms swift 5.7.3