All V benchmarks

Current benchmark data was generated on Sun Apr 06 2025, 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

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 795ms 23ms 28.7MB 780ms 0ms v/clang+gc 0.4.10
1.v 2197ms 4.3ms 2086.6MB 1270ms 917ms v/clang 0.4.10

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 73ms 3.0ms 4.6MB 63ms 0ms v/clang+gc 0.4.10
1.v 209ms 4.7ms 198.0MB 110ms 83ms v/clang 0.4.10

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v timeout 0.0ms 18.3MB 8583ms 10783ms v/clang 0.4.10
1.v timeout 0.0ms 18.9MB 8457ms 10933ms v/clang+gc 0.4.10

Input: 1000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1-m.v 1344ms 67ms 9.6MB 2267ms 2793ms v/clang 0.4.10
1-m.v 1405ms 112ms 10.3MB 2303ms 2943ms v/clang+gc 0.4.10

edigits

Input: 250001

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

Input: 100000

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

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 2199ms 5.7ms 1.9MB 2187ms 0ms v/clang+gc 0.4.10
1.v 2258ms 3.2ms 1.1MB 2247ms 0ms v/clang 0.4.10

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 189ms 2.1ms 1.9MB 180ms 0ms v/clang+gc 0.4.10
1.v 198ms 10ms 1.1MB 187ms 0ms v/clang 0.4.10

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 500ms 1.8ms 1.4MB 490ms 0ms v/clang 0.4.10
1.v 534ms 13ms 2.1MB 523ms 0ms v/clang+gc 0.4.10

Input: 250000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 52ms 0.2ms 1.3MB 40ms 0ms v/clang 0.4.10
1.v 56ms 1.1ms 2.1MB 50ms 0ms v/clang+gc 0.4.10

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1.0ms 0.1ms 1.4MB 0ms 0ms v/clang 0.4.10
1.v 1.3ms 0.1ms 1.9MB 0ms 0ms v/clang+gc 0.4.10

lru

Input: 1000 1000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 245ms 1.9ms 1.3MB 233ms 0ms v/clang 0.4.10
1.v 261ms 2.6ms 2.1MB 250ms 0ms v/clang+gc 0.4.10

Input: 1000 3000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 723ms 2.3ms 1.3MB 713ms 0ms v/clang 0.4.10
1.v 773ms 1.8ms 2.1MB 760ms 0ms v/clang+gc 0.4.10

Input: 100 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 92ms 2.3ms 1.3MB 87ms 0ms v/clang 0.4.10
1.v 104ms 1.3ms 2.1MB 97ms 0ms v/clang+gc 0.4.10

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 310ms 0.2ms 1.6MB 300ms 0ms v/clang 0.4.10
1.v 313ms 2.5ms 2.3MB 303ms 0ms v/clang+gc 0.4.10

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 33ms 0.5ms 1.6MB 30ms 0ms v/clang 0.4.10
1.v 34ms 0.3ms 2.3MB 27ms 0ms v/clang+gc 0.4.10

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 303ms 7.3ms 40.2MB 283ms 0ms v/clang 0.4.10
1.v 311ms 4.3ms 41.1MB 297ms 0ms v/clang+gc 0.4.10
2.v 332ms 0.6ms 6.9MB 320ms 0ms v/clang+gc 0.4.10
2.v 335ms 6.7ms 6.1MB 323ms 0ms v/clang 0.4.10

Input: 10

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 59ms 0.8ms 11.0MB 50ms 0ms v/clang 0.4.10
1.v 60ms 1.2ms 11.7MB 50ms 0ms v/clang+gc 0.4.10
2.v 82ms 0.8ms 3.1MB 70ms 0ms v/clang+gc 0.4.10
2.v 83ms 2.0ms 2.4MB 77ms 0ms v/clang 0.4.10

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.v 3146ms 47ms 3.3MB 3123ms 7ms v/clang+gc 0.4.10

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.v 801ms 21ms 2.6MB 790ms 0ms v/clang+gc 0.4.10

regex-redux

Input: 2500000_in

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

Input: 250000_in

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 3529ms 58ms 26.0MB 3513ms 0ms v/clang+gc 0.4.10

spectral-norm

Input: 8000

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

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 1279ms 6.2ms 1.5MB 1270ms 0ms v/clang 0.4.10
1.v 1324ms 3.1ms 2.5MB 1317ms 0ms v/clang+gc 0.4.10

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.v 325ms 1.8ms 1.5MB 317ms 0ms v/clang 0.4.10
1.v 334ms 0.7ms 2.5MB 327ms 0ms v/clang+gc 0.4.10