|
1 | 1 | #!/bin/bash |
2 | 2 |
|
3 | 3 | # Yet Another Bench Script by Mason Rowe |
4 | | -# Initial Oct 2019; Last update Jan 2025 |
| 4 | +# Initial Oct 2019; Last update Apr 2025 |
5 | 5 |
|
6 | 6 | # Disclaimer: This project is a work in progress. Any errors or suggestions should be |
7 | 7 | # relayed to me via the GitHub project page linked below. |
|
12 | 12 | # performance via fio. The script is designed to not require any dependencies |
13 | 13 | # - either compiled or installed - nor admin privileges to run. |
14 | 14 |
|
15 | | -YABS_VERSION="v2025-01-01" |
| 15 | +YABS_VERSION="v2025-04-20" |
16 | 16 |
|
17 | 17 | echo -e '# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #' |
18 | 18 | echo -e '# Yet-Another-Bench-Script #' |
@@ -69,7 +69,7 @@ while getopts 'bfdignhr4596jw:s:' flag; do |
69 | 69 | f) SKIP_FIO="True" ;; |
70 | 70 | d) SKIP_FIO="True" ;; |
71 | 71 | i) SKIP_IPERF="True" ;; |
72 | | - g) SKIP_GEEKBENCH="True" ;; |
| 72 | + g) SKIP_GEEKBENCH="True" && unset GEEKBENCH_6 ;; |
73 | 73 | n) SKIP_NET="True" ;; |
74 | 74 | h) PRINT_HELP="True" ;; |
75 | 75 | r) REDUCE_NET="True" ;; |
@@ -163,11 +163,11 @@ if [ -n "$PRINT_HELP" ]; then |
163 | 163 | [[ -n $GEEKBENCH_6 ]] && echo -e " running geekbench 6" |
164 | 164 | echo -e |
165 | 165 | echo -e "Local Binary Check:" |
166 | | - [[ -z $LOCAL_FIO ]] && echo -e " fio not detected, will download precompiled binary" || |
167 | | - [[ -z $PREFER_BIN ]] && echo -e " fio detected, using local package" || |
| 166 | + ([[ -z $LOCAL_FIO ]] && echo -e " fio not detected, will download precompiled binary") || |
| 167 | + ([[ -z $PREFER_BIN ]] && echo -e " fio detected, using local package") || |
168 | 168 | echo -e " fio detected, but using precompiled binary instead" |
169 | | - [[ -z $LOCAL_IPERF ]] && echo -e " iperf3 not detected, will download precompiled binary" || |
170 | | - [[ -z $PREFER_BIN ]] && echo -e " iperf3 detected, using local package" || |
| 169 | + ([[ -z $LOCAL_IPERF ]] && echo -e " iperf3 not detected, will download precompiled binary") || |
| 170 | + ([[ -z $PREFER_BIN ]] && echo -e " iperf3 detected, using local package") || |
171 | 171 | echo -e " iperf3 detected, but using precompiled binary instead" |
172 | 172 | echo -e |
173 | 173 | echo -e "Detected Connectivity:" |
@@ -904,8 +904,8 @@ function launch_geekbench { |
904 | 904 | || GB_URL="https://cdn.geekbench.com/Geekbench-5.5.1-Linux.tar.gz" |
905 | 905 | GB_CMD="geekbench5" |
906 | 906 | else # Geekbench v6 |
907 | | - [[ $ARCH = *aarch64* || $ARCH = *arm* ]] && GB_URL="https://cdn.geekbench.com/Geekbench-6.3.0-LinuxARMPreview.tar.gz" \ |
908 | | - || GB_URL="https://cdn.geekbench.com/Geekbench-6.3.0-Linux.tar.gz" |
| 907 | + [[ $ARCH = *aarch64* || $ARCH = *arm* ]] && GB_URL="https://cdn.geekbench.com/Geekbench-6.4.0-LinuxARMPreview.tar.gz" \ |
| 908 | + || GB_URL="https://cdn.geekbench.com/Geekbench-6.4.0-Linux.tar.gz" |
909 | 909 | GB_CMD="geekbench6" |
910 | 910 | fi |
911 | 911 | GB_RUN="True" |
|
0 commit comments