CFLAGS=-O -mavx PERF=perf stat -x' ' -e cycles -e instructions -e L1-dcache-stores -e branches -e branch-misses run: stores @stores 16352 32 0 #for warmup for i in "16352 32 0" "16353 32 1" "32672 64 0" "32673 64 1" "32705 64 33" "15842 31 0" "224 32 0" "257 32 33" "416 64 0" "417 64 1" "449 64 33" "28698 4096 4090"; do perf stat -x " " -e cycles stores $$i 2>&1 | awk '{printf("%6.2f ",$$1/1000000000)}'; echo "stores "$$i; done longperf: stores $(PERF) stores 16352 32 0 $(PERF) stores 16353 32 1 $(PERF) stores 32672 64 0 $(PERF) stores 32673 64 1 $(PERF) stores 32705 64 33 $(PERF) stores 15842 31 0 $(PERF) stores 224 32 0 $(PERF) stores 257 32 33 $(PERF) stores 416 64 0 $(PERF) stores 417 64 1 $(PERF) stores 449 64 33 $(PERF) stores 28698 4096 4090 @#$(PERF) stores 262144 32 0 @#$(PERF) stores 1048576 32 0 @#$(PERF) stores 32000032 32 0 stores: stores.o main.o gcc stores.o main.o -o $@