From bd350f28ec48f3b54039ea74938e3f56915d768d Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@pm.me>
Date: Wed, 27 Oct 2021 11:05:10 +0200
Subject: [PATCH] updated makefile for complexity and slide. need to add a
 proper discussion of the topic and 1-2 examples like searching in a list

---
 slides/complexite.md             | 24 ++++++++++++++----------
 source_codes/complexity/Makefile |  8 ++++----
 2 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/slides/complexite.md b/slides/complexite.md
index 81cbb89..4f807f8 100644
--- a/slides/complexite.md
+++ b/slides/complexite.md
@@ -32,17 +32,21 @@ printf("computation about %.5f seconds\n",
 
 ```bash
 source_codes/complexity$ make bench
-RUN ONCE O0
-the computation of 199972.740622 took about 0.00836 seconds
-RUN ONCE O3
-the computation of 199972.740622 took about 0.00203 seconds
-RUN THOUSAND TIMES O0
-the computation of 199972740.621922 took about 0.00363 seconds
-RUN THOUSAND TIMES O3
-the computation of 199972740.621922 took about 0.00046 seconds
+RUN ONCE -O0
+the computation took about 0.00836 seconds
+RUN ONCE -O3
+the computation took about 0.00203 seconds
+RUN THOUSAND TIMES -O0
+the computation took about 0.00363 seconds
+RUN THOUSAND TIMES -O3
+the computation took about 0.00046 seconds
 ```
 
+Et sur votre machine les résultats seront **différents**.
+
 . . .
 
-* Il est nécessaire d'avoir une mesure indépendante du
-  matériel/compilateur/façon de mesurer.
+## Conclusion
+
+* Nécessité d'avoir une mesure indépendante du/de la
+  matériel/compilateur/façon de mesurer/météo.
diff --git a/source_codes/complexity/Makefile b/source_codes/complexity/Makefile
index 7159661..ad9ba71 100644
--- a/source_codes/complexity/Makefile
+++ b/source_codes/complexity/Makefile
@@ -12,10 +12,10 @@ $(EXECS): %: %.c
 	@echo $@ >> .gitignore
 
 bench: sum_one sum_one_opt sum_thousand sum_thousand_opt
-	@echo "RUN ONCE O0" && ./sum_one
-	@echo "RUN ONCE O3" && ./sum_one_opt
-	@echo "RUN THOUSAND TIMES O0" && ./sum_thousand
-	@echo "RUN THOUSAND TIMES O3" && ./sum_thousand_opt
+	@echo "RUN ONCE -O0" && ./sum_one
+	@echo "RUN ONCE -O3" && ./sum_one_opt
+	@echo "RUN THOUSAND TIMES -O0" && ./sum_thousand
+	@echo "RUN THOUSAND TIMES -O3" && ./sum_thousand_opt
 
 
 sum_one: sum.c
-- 
GitLab