Final touch: style and tabulations.

This commit is contained in:
Samuel Aubertin
2022-01-28 16:33:17 +01:00
parent 64f0c6b318
commit 47946f6aed
4 changed files with 400 additions and 614 deletions

View File

@@ -34,11 +34,11 @@ LDFLAGS= -fuse-ld=lld
CCS= clang gcc
OPTIMIZATIONS= 0 1 2 3 fast s
RETPOLINE= mretpoline
UUID:= $(shell uuid)
UUID:= $(shell uuid || uuidgen)
RESULTS_FILE:= results-$(UUID).json
SSH_KEY= octoupload
TIMES= 3
FLAGS= -j
OCTOFLAGS= -j
### Octopus internals
CPU:= $(shell LC_ALL=en_US.UTF-8 lscpu | grep "Model name" | cut -d":" -f 2 | sort | uniq | awk '{$$1=$$1;print}')
@@ -148,7 +148,7 @@ $(RESULTS_FILE): build
for p in $(PROGS); do \
for t in $$(seq $(TIMES)); do \
sleep 0.1; \
(taskset 01 ./$$p $(FLAGS) || printf "{ \"$$p\": false }")>> $@; \
(taskset 01 ./$$p $(OCTOFLAGS) || printf "{ \"$$p\": false }")>> $@; \
if ! [ "$$p" = "$(lastword $(PROGS))" ]; \
then echo ',' >> $@; \
else if ! [ $$t -eq $(TIMES) ]; \