All C++ benchmarks

Current benchmark data was generated on Sun Oct 17 2021, full log can be found HERE

CONTRIBUTIONS are WELCOME!

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.cpp 2.1ms 0.7ms 1.0MB 0ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
1.cpp 2.2ms 0.4ms 1.8MB 0ms 0ms clang++ 13.0.1
1.cpp 3.7ms 2.2ms 1.7MB 0ms 0ms g++ 11.2.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.cpp 185ms 1.2ms 1.6MB 173ms 0ms g++ 11.2.0
0.cpp 207ms 0.2ms 1.0MB 200ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
0.cpp 211ms 1.2ms 1.7MB 200ms 0ms clang++ 13.0.1
1.cpp 400ms 5.5ms 1.0MB 387ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
1.cpp 435ms 2.0ms 1.6MB 423ms 0ms g++ 11.2.0
1.cpp 440ms 6.8ms 1.8MB 427ms 0ms clang++ 13.0.1

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.cpp 21ms 0.9ms 1.7MB 10ms 0ms g++ 11.2.0
0.cpp 23ms 0.8ms 1.0MB 17ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
0.cpp 23ms 0.2ms 1.8MB 13ms 0ms clang++ 13.0.1
1.cpp 41ms 0.6ms 1.0MB 30ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
1.cpp 48ms 0.1ms 1.7MB 40ms 0ms clang++ 13.0.1
1.cpp 48ms 2.9ms 1.7MB 37ms 0ms g++ 11.2.0

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.cpp 1020ms 18ms 42.3MB 1000ms 10ms clang++ 13.0.1
1.cpp 1046ms 31ms 42.6MB 1027ms 7ms g++ 11.2.0
1.cpp 1059ms 40ms 41.1MB 1040ms 3ms zigc++ 0.9.0-dev.1387+6f30c8c09

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.cpp 115ms 1.2ms 11.7MB 100ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
1.cpp 118ms 3.9ms 13.3MB 110ms 0ms g++ 11.2.0
1.cpp 126ms 13ms 13.1MB 107ms 0ms clang++ 13.0.1

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.cpp 887ms 4.2ms 4.1MB 1730ms 0ms clang++ 13.0.1
7.cpp 887ms 1.7ms 3.3MB 1740ms 0ms g++ 11.2.0
8.cpp 888ms 1.2ms 4.1MB 1737ms 0ms clang++ 13.0.1
8.cpp 889ms 2.8ms 3.3MB 1740ms 0ms g++ 11.2.0
6.cpp 1824ms 3.4ms 4.1MB 3590ms 0ms clang++ 13.0.1
6.cpp 1842ms 11ms 3.3MB 3603ms 0ms g++ 11.2.0

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.cpp 228ms 1.7ms 4.0MB 427ms 0ms clang++ 13.0.1
8.cpp 229ms 2.5ms 4.3MB 440ms 0ms clang++ 13.0.1
8.cpp 231ms 0.4ms 1.7MB 437ms 0ms g++ 11.2.0
7.cpp 237ms 7.2ms 1.6MB 437ms 3ms g++ 11.2.0
6.cpp 462ms 0.7ms 4.1MB 893ms 0ms clang++ 13.0.1
6.cpp 467ms 2.1ms 1.6MB 903ms 0ms g++ 11.2.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.cpp 19ms 1.1ms 4.1MB 23ms 0ms clang++ 13.0.1
8.cpp 19ms 1.3ms 4.1MB 27ms 0ms clang++ 13.0.1
8.cpp 19ms 1.1ms 1.7MB 27ms 0ms g++ 11.2.0
6.cpp 33ms 0.8ms 4.1MB 50ms 0ms clang++ 13.0.1
6.cpp 33ms 0.3ms 1.7MB 50ms 0ms g++ 11.2.0
7.cpp 34ms 25ms 1.7MB 27ms 0ms g++ 11.2.0