V VS Chapel benchmarks

Current benchmark data was generated on Mon Dec 30 2024, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1)

* -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
v 1.v 769ms 31ms 28.9MB 753ms 3ms v/clang+gc 0.4.9
chapel 4.chpl 1953ms 6.1ms 66.3MB 1937ms 7ms chpl 1.31.0
chapel 3.chpl 2024ms 5.9ms 66.3MB 2007ms 7ms chpl 1.31.0
v 1.v 2146ms 3.2ms 2086.6MB 1237ms 890ms v/clang 0.4.9

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 68ms 0.3ms 4.6MB 60ms 0ms v/clang+gc 0.4.9
chapel 4.chpl 191ms 1.6ms 36.4MB 177ms 3ms chpl 1.31.0
chapel 3.chpl 194ms 1.4ms 36.4MB 187ms 0ms chpl 1.31.0
v 1.v 209ms 2.0ms 198.0MB 123ms 73ms v/clang 0.4.9

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 2294ms 56ms 508.1MB 4467ms 67ms chpl 1.31.0
v 1.v timeout 0.0ms 22.6MB 9157ms 10407ms v/clang 0.4.9
v 1.v timeout 0.0ms 22.4MB 9853ms 9697ms v/clang+gc 0.4.9

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 189ms 0.8ms 418.9MB 300ms 37ms chpl 1.31.0
v 1-m.v 2563ms 299ms 20.3MB 4827ms 5190ms v/clang+gc 0.4.9
v 1-m.v 2873ms 231ms 15.7MB 5180ms 6013ms v/clang 0.4.9

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 79ms 0.3ms 36.5MB 67ms 3ms chpl 1.31.0
v 1.v timeout 0.0ms 23.3MB 4980ms 3ms v/clang+gc 0.4.9

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 40ms 0.5ms 34.5MB 30ms 0ms chpl 1.31.0
v 1.v timeout 0.0ms 13.8MB 4990ms 0ms v/clang+gc 0.4.9

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 2186ms 5.5ms 1.9MB 2173ms 0ms v/clang+gc 0.4.9
v 1.v 2191ms 1.3ms 1.1MB 2180ms 0ms v/clang 0.4.9

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 186ms 1.9ms 1.1MB 170ms 0ms v/clang 0.4.9
v 1.v 187ms 1.8ms 1.9MB 180ms 0ms v/clang+gc 0.4.9

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 112ms 0.8ms 32.4MB 197ms 0ms chpl 1.31.0
v 1.v 500ms 1.4ms 1.3MB 483ms 0ms v/clang 0.4.9
v 1.v 538ms 4.2ms 2.1MB 523ms 0ms v/clang+gc 0.4.9

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5.chpl 28ms 0.3ms 32.4MB 17ms 3ms chpl 1.31.0
v 1.v 52ms 0.3ms 1.3MB 43ms 0ms v/clang 0.4.9
v 1.v 57ms 2.4ms 2.1MB 50ms 0ms v/clang+gc 0.4.9

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 1.1ms 0.0ms 1.4MB 0ms 0ms v/clang 0.4.9
v 1.v 1.3ms 0.1ms 1.9MB 0ms 0ms v/clang+gc 0.4.9
chapel 1.chpl 17ms 2.0ms 32.8MB 10ms 0ms chpl 1.31.0

lru

Input: 1000 1000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 241ms 4.0ms 1.3MB 227ms 0ms v/clang 0.4.9
v 1.v 258ms 6.4ms 2.1MB 247ms 0ms v/clang+gc 0.4.9

Input: 1000 3000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 709ms 3.2ms 1.3MB 697ms 0ms v/clang 0.4.9
v 1.v 765ms 2.4ms 2.1MB 753ms 0ms v/clang+gc 0.4.9

Input: 100 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 89ms 0.4ms 1.3MB 80ms 0ms v/clang 0.4.9
v 1.v 99ms 0.8ms 2.1MB 90ms 0ms v/clang+gc 0.4.9

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 309ms 0.5ms 1.6MB 300ms 0ms v/clang 0.4.9
v 1.v 311ms 1.8ms 2.3MB 300ms 0ms v/clang+gc 0.4.9
chapel 2.chpl 329ms 2.7ms 32.9MB 317ms 3ms chpl 1.31.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 33ms 0.0ms 1.6MB 23ms 0ms v/clang 0.4.9
v 1.v 33ms 0.7ms 2.3MB 23ms 0ms v/clang+gc 0.4.9
chapel 2.chpl 51ms 0.3ms 32.8MB 40ms 3ms chpl 1.31.0

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 295ms 10ms 40.4MB 277ms 0ms v/clang 0.4.9
v 1.v 310ms 5.8ms 60.6MB 297ms 0ms v/clang+gc 0.4.9
v 2.v 332ms 2.1ms 6.9MB 320ms 0ms v/clang+gc 0.4.9
v 2.v 332ms 3.8ms 6.1MB 320ms 0ms v/clang 0.4.9

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
v 1.v 60ms 1.9ms 11.9MB 50ms 0ms v/clang+gc 0.4.9
v 1.v 61ms 2.4ms 11.0MB 50ms 0ms v/clang 0.4.9
v 2.v 82ms 1.5ms 2.4MB 73ms 0ms v/clang 0.4.9
v 2.v 83ms 1.6ms 3.1MB 70ms 0ms v/clang+gc 0.4.9

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 450ms 0.3ms 32.4MB 440ms 0ms chpl 1.31.0
v 2.v timeout 0.0ms 7.8MB 4973ms 10ms v/clang+gc 0.4.9

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 121ms 0.6ms 34.4MB 110ms 7ms chpl 1.31.0
v 2.v 809ms 37ms 2.6MB 793ms 0ms v/clang+gc 0.4.9

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 1393ms 10ms 224.2MB 1353ms 33ms chpl 1.31.0
v 1.v timeout 0.0ms 83.1MB 4973ms 7ms v/clang+gc 0.4.9

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 169ms 1.9ms 52.9MB 150ms 10ms chpl 1.31.0
v 1.v 3306ms 71ms 26.0MB 3293ms 0ms v/clang+gc 0.4.9

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 1923ms 22ms 32.9MB 3807ms 3ms chpl 1.31.0
chapel 1.chpl 3722ms 3.1ms 32.8MB 3713ms 0ms chpl 1.31.0
v 1.v timeout 0.0ms 1.6MB 4990ms 0ms v/clang 0.4.9
v 1.v timeout 0.0ms 2.8MB 4990ms 0ms v/clang+gc 0.4.9

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 497ms 2.1ms 32.9MB 957ms 0ms chpl 1.31.0
chapel 1.chpl 946ms 5.0ms 32.8MB 937ms 7ms chpl 1.31.0
v 1.v 1277ms 7.3ms 1.5MB 1267ms 0ms v/clang 0.4.9
v 1.v 1305ms 2.8ms 2.5MB 1297ms 0ms v/clang+gc 0.4.9

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 141ms 0.2ms 32.9MB 247ms 0ms chpl 1.31.0
chapel 1.chpl 254ms 2.0ms 32.8MB 243ms 0ms chpl 1.31.0
v 1.v 323ms 1.0ms 1.5MB 310ms 0ms v/clang 0.4.9
v 1.v 333ms 0.1ms 2.5MB 323ms 0ms v/clang+gc 0.4.9