mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 00:47:21 +00:00
4086895249
* add scripts to benchmark and plot performance across tags * missing newline * fmt
15 lines
334 B
Bash
Executable file
15 lines
334 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "Usage: $0 <repository to clone> <number_of_versions_back_to_test>"
|
|
exit 1
|
|
fi
|
|
|
|
# Get the number of versions back to test from command line argument
|
|
num_versions="$2"
|
|
|
|
test_repo="$1"
|
|
|
|
bash hack/bench/versions.sh $test_repo $num_versions | tee hack/bench/plot.txt
|
|
|
|
gnuplot hack/bench/plot.gp
|