All V benchmarks

Current benchmark data was generated on Fri Jul 01 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8171M 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 1462ms 6.5ms 37.2MB 1437ms 10ms v/clang+gc 0.3.0
1.v 1489ms 31ms 37.0MB 1463ms 10ms v/clang 0.3.0

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 144ms 1.7ms 5.7MB 130ms 0ms v/clang 0.3.0
1.v 148ms 4.5ms 5.6MB 133ms 0ms v/clang+gc 0.3.0

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.0
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.0

Input: 1000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1-m.v 2933ms 427ms 20.5MB 2933ms 2563ms v/clang+gc 0.3.0
1-m.v 3177ms 445ms 20.5MB 3143ms 2783ms v/clang 0.3.0

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.0

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.0

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 3772ms 12ms 2.0MB 3760ms 0ms v/clang+gc 0.3.0
1.v 3776ms 13ms 2.0MB 3763ms 0ms v/clang 0.3.0

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 313ms 0.6ms 2.0MB 300ms 0ms v/clang 0.3.0
1.v 320ms 3.1ms 2.0MB 307ms 0ms v/clang+gc 0.3.0

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 631ms 8.2ms 2.3MB 623ms 0ms v/clang+gc 0.3.0
1.v 632ms 2.2ms 2.2MB 617ms 0ms v/clang 0.3.0

Input: 250000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 67ms 2.3ms 2.2MB 60ms 0ms v/clang 0.3.0
1.v 69ms 2.0ms 2.2MB 57ms 0ms v/clang+gc 0.3.0

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 2.6ms 0.6ms 2.0MB 0ms 0ms v/clang+gc 0.3.0
1.v 2.7ms 1.0ms 2.1MB 0ms 0ms v/clang 0.3.0

lru

Input: 1000 1000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 435ms 2.4ms 2.2MB 420ms 0ms v/clang+gc 0.3.0
1.v 456ms 5.1ms 2.3MB 440ms 0ms v/clang 0.3.0

Input: 1000 3000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1302ms 2.7ms 2.2MB 1293ms 0ms v/clang+gc 0.3.0
1.v 1374ms 5.6ms 2.3MB 1360ms 0ms v/clang 0.3.0

Input: 100 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 152ms 0.6ms 2.2MB 137ms 0ms v/clang+gc 0.3.0
1.v 166ms 6.0ms 2.3MB 153ms 0ms v/clang 0.3.0

mandelbrot

Input: 5000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 450ms 2.1ms 5.1MB 440ms 0ms v/clang+gc 0.3.0
1.v 481ms 12ms 8.3MB 467ms 0ms v/clang 0.3.0

Input: 1000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 23ms 0.7ms 2.2MB 10ms 0ms v/clang+gc 0.3.0
1.v 25ms 2.4ms 2.3MB 13ms 0ms v/clang 0.3.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1224ms 1.8ms 2.4MB 1213ms 0ms v/clang+gc 0.3.0
1.v 1248ms 40ms 2.4MB 1237ms 0ms v/clang 0.3.0

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 124ms 0.2ms 2.3MB 117ms 0ms v/clang 0.3.0
1.v 129ms 2.7ms 2.3MB 120ms 0ms v/clang+gc 0.3.0

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.v 608ms 3.2ms 6.8MB 593ms 0ms v/clang+gc 0.3.0
2.v 609ms 5.0ms 7.0MB 593ms 0ms v/clang 0.3.0
1.v 999ms 8.9ms 41.2MB 973ms 7ms v/clang 0.3.0
1.v 1007ms 33ms 41.2MB 987ms 7ms v/clang+gc 0.3.0

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 130ms 0.8ms 19.5MB 110ms 3ms v/clang 0.3.0
1.v 135ms 2.9ms 19.3MB 120ms 0ms v/clang+gc 0.3.0
2.v 135ms 0.9ms 3.3MB 123ms 0ms v/clang+gc 0.3.0
2.v 136ms 2.1ms 3.3MB 123ms 0ms v/clang 0.3.0

pidigits

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.0
1.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.0
2.v timeout 0.0ms 0.0MB 0ms 0ms v/clang+gc 0.3.0

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1356ms 17ms 2.6MB 1343ms 0ms v/clang+gc 0.3.0
2.v 1829ms 9.5ms 2.9MB 1813ms 3ms v/clang+gc 0.3.0
1.v 1973ms 55ms 3.0MB 1953ms 3ms v/clang 0.3.0

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 4219ms 13ms 2.8MB 4200ms 0ms v/clang+gc 0.3.0
1.v 4255ms 18ms 2.8MB 4240ms 0ms v/clang 0.3.0

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1053ms 5.5ms 2.6MB 1043ms 0ms v/clang 0.3.0
1.v 1059ms 13ms 2.6MB 1043ms 0ms v/clang+gc 0.3.0

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 266ms 1.2ms 2.6MB 253ms 0ms v/clang 0.3.0
1.v 267ms 3.1ms 2.6MB 257ms 0ms v/clang+gc 0.3.0