Perl VS Julia benchmarks

Current benchmark data was generated on Thu Jul 13 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

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 1.pl timeout 0.0ms 77.5MB 4963ms 20ms perl 5.38.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 1.pl 2195ms 12ms 14.1MB 2183ms 0ms perl 5.38.0

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 1.pl 4570ms 33ms 10.8MB 4553ms 0ms perl 5.38.0

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 1.pl 468ms 4.8ms 6.6MB 453ms 0ms perl 5.38.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 1.pl 3.0ms 0.6ms 4.9MB 0ms 0ms perl 5.38.0
julia 1.jl 200ms 0.6ms 216.9MB 112ms 76ms julia/aot 1.9.2

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 7.jl 600ms 25ms 223.1MB 523ms 63ms julia/aot 1.9.2
perl 2.pl timeout 0.0ms 6.2MB 4987ms 0ms perl 5.38.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
julia 7.jl 281ms 4.9ms 223.1MB 193ms 73ms julia/aot 1.9.2
perl 2.pl 3183ms 17ms 6.2MB 3167ms 0ms perl 5.38.0

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 4.pl timeout 0.0ms 8.5MB 9860ms 7ms perl 5.38.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 4.pl timeout 0.0ms 10.1MB 9760ms 3ms perl 5.38.0

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
perl 4-m.pl 4699ms 56ms 8.8MB 9137ms 7ms perl 5.38.0