All C benchmarks

Current benchmark data was generated on Tue Jan 18 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.c 1.9ms 0.6ms 1.2MB 0ms 0ms gcc 11.2.0
1.c 2.5ms 1.0ms 1.4MB 0ms 0ms clang 13.0.1
1.c 2.9ms 1.1ms 0.2MB 0ms 0ms zigcc 0.10.0-dev

knucleotide

Input: 2500000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.c 269ms 43ms 23.7MB 407ms 20ms gcc 11.2.0
1.c 519ms 34ms 20.4MB 853ms 13ms clang 13.0.1

Input: 250000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.c 32ms 2.1ms 13.0MB 40ms 3ms gcc 11.2.0
1.c 61ms 3.0ms 11.7MB 97ms 3ms clang 13.0.1

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.c 334ms 0.7ms 1.2MB 320ms 0ms gcc 11.2.0
5.c 342ms 0.7ms 1.2MB 330ms 0ms gcc 11.2.0
8.c 353ms 1.3ms 1.3MB 340ms 0ms clang 13.0.1
2.c 379ms 0.6ms 1.3MB 370ms 0ms gcc 11.2.0
5.c 400ms 0.2ms 0.2MB 390ms 0ms zigcc 0.10.0-dev
5.c 400ms 0.3ms 1.3MB 390ms 0ms clang 13.0.1
2.c 403ms 0.8ms 0.3MB 393ms 0ms zigcc 0.10.0-dev
8.c 405ms 40ms 0.3MB 370ms 0ms zigcc 0.10.0-dev
2.c 406ms 0.7ms 1.4MB 400ms 0ms clang 13.0.1

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.c 35ms 0.0ms 1.2MB 30ms 0ms gcc 11.2.0
5.c 36ms 0.9ms 1.1MB 30ms 0ms gcc 11.2.0
8.c 37ms 0.2ms 1.3MB 30ms 0ms clang 13.0.1
8.c 40ms 0.9ms 0.3MB 27ms 0ms zigcc 0.10.0-dev
2.c 40ms 0.9ms 1.1MB 30ms 0ms gcc 11.2.0
5.c 42ms 0.1ms 0.2MB 30ms 0ms zigcc 0.10.0-dev
2.c 42ms 0.1ms 0.3MB 30ms 0ms zigcc 0.10.0-dev
5.c 42ms 0.8ms 1.3MB 33ms 0ms clang 13.0.1
2.c 43ms 0.6ms 1.3MB 37ms 0ms clang 13.0.1

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.c 8.4ms 0.3ms 1.2MB 0ms 0ms gcc 11.2.0
5.c 8.9ms 0.8ms 1.2MB 0ms 0ms gcc 11.2.0
2.c 9.0ms 0.1ms 1.1MB 0ms 0ms gcc 11.2.0
5.c 9.0ms 0.0ms 0.2MB 0ms 0ms zigcc 0.10.0-dev
8.c 9.1ms 0.8ms 1.3MB 0ms 0ms clang 13.0.1
2.c 9.3ms 0.3ms 0.3MB 0ms 0ms zigcc 0.10.0-dev
8.c 9.5ms 0.9ms 0.3MB 0ms 0ms zigcc 0.10.0-dev
2.c 10ms 0.5ms 1.3MB 0ms 0ms clang 13.0.1
5.c 11ms 3.0ms 1.3MB 0ms 0ms clang 13.0.1

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.c 874ms 46ms 41.2MB 837ms 20ms clang 13.0.1
1.c 888ms 87ms 40.1MB 853ms 13ms zigcc 0.10.0-dev
1.c 981ms 58ms 41.2MB 937ms 27ms gcc 11.2.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.c 120ms 3.0ms 12.0MB 107ms 0ms gcc 11.2.0
1.c 122ms 3.2ms 11.9MB 107ms 0ms clang 13.0.1
1.c 125ms 6.0ms 10.8MB 110ms 0ms zigcc 0.10.0-dev

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.c 1398ms 1.6ms 1.3MB 2743ms 0ms gcc 11.2.0
6.c 1579ms 13ms 1.2MB 3093ms 3ms gcc 11.2.0
6.c 1684ms 6.5ms 3.2MB 3303ms 0ms clang 13.0.1
4.c 1792ms 2.7ms 3.1MB 3520ms 0ms clang 13.0.1
5.c 1856ms 2.6ms 1.2MB 3657ms 0ms gcc 11.2.0
5.c 2168ms 16ms 3.1MB 4253ms 0ms clang 13.0.1
3.c 2210ms 21ms 1.2MB 4323ms 3ms gcc 11.2.0
3.c 2228ms 3.3ms 3.3MB 4383ms 3ms clang 13.0.1

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.c 352ms 0.9ms 1.2MB 677ms 0ms gcc 11.2.0
6.c 399ms 0.8ms 2.6MB 777ms 0ms gcc 11.2.0
6.c 424ms 0.8ms 3.1MB 827ms 0ms clang 13.0.1
4.c 453ms 1.5ms 3.1MB 877ms 0ms clang 13.0.1
5.c 466ms 0.3ms 1.2MB 907ms 0ms gcc 11.2.0
5.c 550ms 12ms 3.2MB 1053ms 0ms clang 13.0.1
3.c 553ms 1.9ms 1.2MB 1080ms 0ms gcc 11.2.0
3.c 561ms 2.3ms 3.2MB 1090ms 0ms clang 13.0.1

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.c 25ms 0.6ms 1.2MB 37ms 0ms gcc 11.2.0
6.c 28ms 0.2ms 1.2MB 43ms 0ms gcc 11.2.0
6.c 30ms 0.0ms 3.4MB 50ms 0ms clang 13.0.1
4.c 33ms 2.8ms 3.3MB 50ms 0ms clang 13.0.1
5.c 34ms 1.6ms 1.1MB 50ms 0ms gcc 11.2.0
5.c 37ms 0.5ms 3.3MB 60ms 0ms clang 13.0.1
3.c 38ms 0.7ms 3.3MB 70ms 0ms clang 13.0.1
3.c 39ms 1.4ms 1.3MB 60ms 0ms gcc 11.2.0