All V 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.)

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1087ms 25ms 37.2MB 1057ms 13ms v/clang+gc 0.3.2
1.v 1089ms 21ms 37.0MB 1050ms 10ms v/clang 0.3.2

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 88ms 2.1ms 5.6MB 80ms 0ms v/clang+gc 0.3.2
1.v 97ms 0.7ms 5.5MB 77ms 0ms v/clang 0.3.2

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang 0.3.2
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2

Input: 1000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1-m.v 3508ms 766ms 20.9MB 3707ms 2843ms v/clang+gc 0.3.2
1-m.v 4052ms 517ms 17.4MB 4120ms 3287ms v/clang 0.3.2

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2

Input: 100000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 2831ms 3.6ms 2.0MB 2817ms 0ms v/clang 0.3.2
1.v 2846ms 8.3ms 2.0MB 2833ms 0ms v/clang+gc 0.3.2

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 235ms 1.2ms 2.0MB 223ms 0ms v/clang 0.3.2
1.v 236ms 0.2ms 2.0MB 223ms 0ms v/clang+gc 0.3.2

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 482ms 2.8ms 2.0MB 467ms 0ms v/clang+gc 0.3.2
1.v 513ms 2.8ms 1.9MB 493ms 3ms v/clang 0.3.2

Input: 250000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 51ms 1.9ms 2.2MB 40ms 0ms v/clang+gc 0.3.2
1.v 56ms 1.6ms 2.2MB 40ms 0ms v/clang 0.3.2

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1.9ms 0.3ms 2.0MB 0ms 0ms v/clang+gc 0.3.2
1.v 2.1ms 0.6ms 2.1MB 0ms 0ms v/clang 0.3.2

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2

Input: 500

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2

lru

Input: 1000 1000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 353ms 1.7ms 2.2MB 340ms 0ms v/clang+gc 0.3.2
1.v 363ms 0.5ms 2.3MB 350ms 0ms v/clang 0.3.2

Input: 1000 3000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1051ms 1.6ms 2.3MB 1040ms 0ms v/clang+gc 0.3.2
1.v 1083ms 1.5ms 2.3MB 1070ms 0ms v/clang 0.3.2

Input: 100 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 124ms 2.1ms 2.3MB 110ms 0ms v/clang+gc 0.3.2
1.v 128ms 0.3ms 2.3MB 120ms 0ms v/clang 0.3.2

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 885ms 0.9ms 2.3MB 877ms 0ms v/clang+gc 0.3.2
1.v 890ms 24ms 2.3MB 880ms 0ms v/clang 0.3.2

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 91ms 0.1ms 2.3MB 80ms 0ms v/clang+gc 0.3.2
1.v 93ms 2.3ms 2.3MB 83ms 0ms v/clang 0.3.2

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.v 484ms 3.8ms 10.9MB 470ms 0ms v/clang 0.3.2
2.v 486ms 3.4ms 10.6MB 467ms 0ms v/clang+gc 0.3.2
1.v 739ms 7.4ms 41.2MB 713ms 3ms v/clang+gc 0.3.2
1.v 740ms 14ms 41.2MB 717ms 7ms v/clang 0.3.2

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.v 109ms 0.3ms 4.0MB 97ms 0ms v/clang 0.3.2
2.v 109ms 0.4ms 3.9MB 100ms 0ms v/clang+gc 0.3.2
1.v 113ms 0.8ms 20.4MB 97ms 3ms v/clang 0.3.2
1.v 115ms 2.3ms 20.4MB 100ms 0ms v/clang+gc 0.3.2

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 3451ms 23ms 2.9MB 3433ms 0ms v/clang+gc 0.3.2
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang 0.3.2
2.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 858ms 26ms 2.8MB 847ms 0ms v/clang+gc 0.3.2
2.v 1351ms 24ms 2.9MB 1337ms 0ms v/clang+gc 0.3.2
1.v 1497ms 18ms 3.0MB 1480ms 3ms v/clang 0.3.2

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang 0.3.2
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.2

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1665ms 0.1ms 2.7MB 1650ms 0ms v/clang+gc 0.3.2
1.v 1666ms 2.0ms 2.8MB 1650ms 0ms v/clang 0.3.2

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 420ms 0.9ms 2.6MB 410ms 0ms v/clang+gc 0.3.2
1.v 420ms 0.6ms 2.5MB 410ms 0ms v/clang 0.3.2