Update README

This commit is contained in:
Clémentine Urquizar 2021-06-01 18:57:35 +02:00 committed by Tamo
parent edfcdb171c
commit ef1ac8a0cb
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
2 changed files with 6 additions and 6 deletions

View File

@ -99,8 +99,8 @@ List the available file in the DO Space:
./benchmarks/script/list.sh ./benchmarks/script/list.sh
``` ```
```bash ```bash
2021-05-31 14:40 279890 s3://milli-benchmarks/critcmp_results/songs_main_09a4321.json songs_main_09a4321.json
2021-05-31 13:49 279576 s3://milli-benchmarks/critcmp_results/songs_geosearch_24ec456.json songs_geosearch_24ec456.json
``` ```
Run the comparison script: Run the comparison script:

View File

@ -21,9 +21,9 @@ if [[ $# -ne 2 ]]
then then
echo 'Need 2 arguments.' echo 'Need 2 arguments.'
echo 'Usage: ' echo 'Usage: '
echo ' $ bash compare.sh file_to_download1 file_to_download2' echo ' $ ./compare.sh file_to_download1 file_to_download2'
echo 'Ex:' echo 'Ex:'
echo ' $ bash compare.sh songs_main_09a4321.json songs_geosearch_24ec456.json' echo ' $ ./compare.sh songs_main_09a4321.json songs_geosearch_24ec456.json'
exit 1 exit 1
fi fi
@ -38,7 +38,7 @@ file2_local_path="/tmp/$file2"
if [[ ! -f "$file1_local_path" ]]; then if [[ ! -f "$file1_local_path" ]]; then
curl "$file1_s3_url" -O "$file1_local_path" curl "$file1_s3_url" -O "$file1_local_path"
if [[ "$?" -ne 0 ]]; then if [[ "$?" -ne 0 ]]; then
echo 'curl command failed. Check your configuration' echo 'curl command failed.'
exit 1 exit 1
fi fi
else else
@ -48,7 +48,7 @@ fi
if [[ ! -f "$file2_local_path" ]]; then if [[ ! -f "$file2_local_path" ]]; then
curl "$file2_s3_url" -O "$file2_local_path" curl "$file2_s3_url" -O "$file2_local_path"
if [[ "$?" -ne 0 ]]; then if [[ "$?" -ne 0 ]]; then
echo 'curl command failed. Check your configuration' echo 'curl command failed.'
exit 1 exit 1
fi fi
else else