diff --git a/slides/complexite.md b/slides/complexite.md index 81cbb89819d08e179b2c1deb11aced8eafc3c56b..4f807f8a8e908587ccb3e17d476f81ab8203cb92 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 71596615ba959b64dbe76a9fdefcd1240a127fa0..ad9ba7166f3c6a055140809efffc3e374fb9ab63 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