diff options
| author | Noobie99 <noob999noob999@gmail.com> | 2023-06-11 15:57:59 +0200 |
|---|---|---|
| committer | Noobie99 <noob999noob999@gmail.com> | 2023-06-11 15:57:59 +0200 |
| commit | 70a2b877a6eadae2528c1301daf9b80016257c8f (patch) | |
| tree | 086968134d145a9789360ab0c8f1f98cd4a395b7 /other | |
| parent | 24c2d7e3b2755547f084c698c8a9a510509c0b98 (diff) | |
add stress test script
Diffstat (limited to 'other')
| -rw-r--r-- | other/other.tex | 4 | ||||
| -rw-r--r-- | other/stress.sh | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/other/other.tex b/other/other.tex index 58c87a7..3c9639c 100644 --- a/other/other.tex +++ b/other/other.tex @@ -107,6 +107,10 @@ \sourcecode{other/stuff.cpp} \end{algorithm} +\begin{algorithm}{Stress Test} + \sourcecode{other/stress.sh} +\end{algorithm} + \clearpage \subsection{Gemischtes} \begin{itemize} diff --git a/other/stress.sh b/other/stress.sh new file mode 100644 index 0000000..4856b1a --- /dev/null +++ b/other/stress.sh @@ -0,0 +1,7 @@ +for i in {1..1000}; do + printf "\r$i" + python3 gen.py > input # generate test with gen.py + ./a.out < input > out # execute ./a.out + ./a2.out < input > out2 # execute ./a2.out + diff out out2 || break +done |
