diff --git a/benchmark_comprehensive.sh b/benchmark_comprehensive.sh index dfb4a4c..d361ced 100755 --- a/benchmark_comprehensive.sh +++ b/benchmark_comprehensive.sh @@ -537,9 +537,10 @@ if [ "$rs_mbs" != "0" ]; then IFS='|' read -r fs_ms fs_mbs fs_verified <<< "${FS_RESULTS[$i]}" if [ "$fs_mbs" != "0" ]; then speedup=$(awk "BEGIN {printf \"%.2f\", $fs_mbs / $rs_mbs}") - if [ "$(awk \"BEGIN {print ($speedup >= 2.0) ? 1 : 0}\")" = "1" ]; then + # Check if speedup >= 2.0 using bc for floating point comparison + if [ "$(awk "BEGIN {print ($speedup >= 2.0) ? 1 : 0}")" = "1" ]; then color="$GREEN" - elif [ "$(awk \"BEGIN {print ($speedup >= 1.3) ? 1 : 0}\")" = "1" ]; then + elif [ "$(awk "BEGIN {print ($speedup >= 1.3) ? 1 : 0}")" = "1" ]; then color="$YELLOW" else color="$RESET"