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

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1216ms 7.1ms 37.1MB 1187ms 13ms v/clang+gc 0.3.4
1.v 1453ms 241ms 37.0MB 1427ms 10ms v/clang 0.3.4

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 88ms 0.4ms 5.5MB 80ms 0ms v/clang+gc 0.3.4
1.v 91ms 1.0ms 5.6MB 80ms 0ms v/clang 0.3.4

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 15.1MB 4927ms 4533ms v/clang 0.3.4
1.v timeout 0.0ms 17.6MB 4927ms 3940ms v/clang+gc 0.3.4

Input: 1000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1-m.v 3683ms 535ms 20.6MB 3780ms 3183ms v/clang 0.3.4
1-m.v 4278ms 449ms 16.6MB 4370ms 3390ms v/clang+gc 0.3.4

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 28.5MB 4977ms 3ms v/clang+gc 0.3.4

Input: 100000

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

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 2877ms 38ms 2.1MB 2860ms 0ms v/clang+gc 0.3.4
1.v 3234ms 6.6ms 2.1MB 3223ms 0ms v/clang 0.3.4

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 251ms 12ms 2.0MB 237ms 0ms v/clang+gc 0.3.4
1.v 270ms 4.4ms 2.0MB 253ms 0ms v/clang 0.3.4

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 624ms 4.3ms 2.0MB 607ms 3ms v/clang+gc 0.3.4
1.v 631ms 19ms 2.0MB 620ms 0ms v/clang 0.3.4

Input: 250000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 66ms 1.0ms 2.0MB 57ms 0ms v/clang 0.3.4
1.v 68ms 3.2ms 2.1MB 53ms 0ms v/clang+gc 0.3.4

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 2.9ms 0.7ms 2.0MB 0ms 0ms v/clang+gc 0.3.4
1.v 3.0ms 1.1ms 2.0MB 0ms 0ms v/clang 0.3.4

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1084ms 81ms 8.4MB 657ms 837ms v/clang+gc 0.3.4

Input: 500

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 192ms 23ms 6.8MB 123ms 120ms v/clang+gc 0.3.4

lru

Input: 1000 1000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 356ms 1.0ms 2.2MB 343ms 0ms v/clang+gc 0.3.4
1.v 367ms 0.4ms 2.2MB 353ms 0ms v/clang 0.3.4

Input: 1000 3000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1069ms 13ms 2.3MB 1053ms 0ms v/clang+gc 0.3.4
1.v 1094ms 1.4ms 2.2MB 1083ms 0ms v/clang 0.3.4

Input: 100 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 126ms 0.5ms 2.3MB 110ms 0ms v/clang+gc 0.3.4
1.v 130ms 1.9ms 2.2MB 120ms 0ms v/clang 0.3.4

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 897ms 25ms 2.2MB 883ms 0ms v/clang+gc 0.3.4
1.v 902ms 27ms 2.3MB 887ms 0ms v/clang 0.3.4

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 92ms 2.1ms 2.3MB 80ms 0ms v/clang+gc 0.3.4
1.v 93ms 2.8ms 2.3MB 83ms 0ms v/clang 0.3.4

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.v 561ms 3.2ms 10.5MB 540ms 0ms v/clang 0.3.4
2.v 579ms 6.1ms 10.7MB 563ms 0ms v/clang+gc 0.3.4
1.v 1611ms 39ms 41.3MB 1590ms 3ms v/clang 0.3.4
1.v 1662ms 184ms 41.2MB 1637ms 7ms v/clang+gc 0.3.4

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.v 128ms 3.9ms 4.0MB 117ms 0ms v/clang 0.3.4
2.v 139ms 8.9ms 4.2MB 127ms 0ms v/clang+gc 0.3.4
1.v 148ms 20ms 20.4MB 127ms 3ms v/clang+gc 0.3.4
1.v 150ms 10ms 21.0MB 130ms 7ms v/clang 0.3.4

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 3612ms 108ms 3.0MB 3590ms 7ms v/clang+gc 0.3.4
1.v timeout 0.0ms 4.1MB 4983ms 0ms v/clang 0.3.4
2.v timeout 0.0ms 3.0MB 4983ms 3ms v/clang+gc 0.3.4

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 890ms 3.3ms 2.9MB 873ms 0ms v/clang+gc 0.3.4
1.v 1491ms 22ms 3.0MB 1473ms 3ms v/clang 0.3.4
2.v 1714ms 7.3ms 2.7MB 1703ms 0ms v/clang+gc 0.3.4

regex-redux

Input: 2500000_in

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 93.2MB 4960ms 20ms v/clang+gc 0.3.4

Input: 250000_in

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 4881ms 5.4ms 27.7MB 4853ms 10ms v/clang+gc 0.3.4

spectral-norm

Input: 8000

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

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1669ms 1.6ms 2.9MB 1657ms 0ms v/clang+gc 0.3.4
1.v 1671ms 3.8ms 2.9MB 1653ms 0ms v/clang 0.3.4

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 421ms 1.9ms 2.6MB 410ms 0ms v/clang 0.3.4
1.v 424ms 6.0ms 2.5MB 413ms 0ms v/clang+gc 0.3.4