Browse Source

Add test script

master
Joshua-Gordon 2 years ago
parent
commit
a136381736
  1. 10
      run_tests.sh

10
run_tests.sh

@ -0,0 +1,10 @@
#!/bin/bash
for i in $(seq 1 10); do
for j in $(seq 1 10); do
start=$(date +%s.%N)
cargo run $i $j
duration=$(echo "$(date +%s.%N) - $start" | bc)
echo $duration >> log.txt
echo "$i, $j" >> log.txt
done
done
Loading…
Cancel
Save