diff --git a/perfscript.sh b/perfscript.sh new file mode 100644 index 0000000000000000000000000000000000000000..661a007eab009e4d17577f6d1a3712c8a869a689 --- /dev/null +++ b/perfscript.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +echo "\n************************* +************************* +TESTE COM 0 +************************* +*************************\n">resultadoPerf.txt + +for i in 1 2 3 4 5 6 7 8 9 10 +do + echo "Teste nº $i\n" >> resultadoPerf.txt + sudo perf stat -e cycles,instructions,cache-references,cache-misses,branches,branch-misses hashcat --opencl-device-types 1 -b -m 0 2>>resultadoPerf.txt 1>>resultadoPerf.txt +done + +echo "\n************************* +************************* +TESTE COM 100 +************************* +*************************\n">>resultadoPerf.txt + +for i in 1 2 3 4 5 6 7 8 9 10 +do + echo "Teste nº $i\n" >> resultadoPerf.txt + sudo perf stat -e cycles,instructions,cache-references,cache-misses,branches,branch-misses hashcat --opencl-device-types 1 -b -m 100 2>>resultadoPerf.txt 1>>resultadoPerf.txt +done + +echo "\n************************* +************************* +TESTE COM 2500 +************************* +*************************\n">>resultadoPerf.txt + +for i in 1 2 3 4 5 6 7 8 9 10 +do + echo "Teste nº $i\n" >> resultadoPerf.txt + sudo perf stat -e cycles,instructions,cache-references,cache-misses,branches,branch-misses hashcat --opencl-device-types 1 -b -m 2500 2>>resultadoPerf.txt 1>>resultadoPerf.txt +done