From 807fc7d1fad9556700a6d21fe0cc76439854597d Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 22 Jun 2024 12:36:38 +0200 Subject: [PATCH] Use tmpfs for running benchmarks --- scripts/ci/run_benchmarks.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index ebac744e5..00fcab1e0 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -40,12 +40,13 @@ function measure_peak_ram_and_time { # on macOS time has different parameters, so simply run command on macOS $COMMAND > /dev/null 2>&1 else - OUTPUT=$(/usr/bin/time -f "%e %M" $COMMAND 2>&1 | tail -n 1) + $COMMAND + # OUTPUT=$(/usr/bin/time -f "%e %M" $COMMAND 2>&1 | tail -n 1) - TIME=$(echo $OUTPUT | awk '{print $1}') - PEAK_RAM_KB=$(echo $OUTPUT | awk '{print $2}') - PEAK_RAM_MB=$(echo "scale=2; $PEAK_RAM_KB / 1024" | bc) - echo "Time: ${TIME}s Peak RAM: ${PEAK_RAM_MB}MB" > $OUTPUT_FILE + # TIME=$(echo $OUTPUT | awk '{print $1}') + # PEAK_RAM_KB=$(echo $OUTPUT | awk '{print $2}') + # PEAK_RAM_MB=$(echo "scale=2; $PEAK_RAM_KB / 1024" | bc) + # echo "Time: ${TIME}s Peak RAM: ${PEAK_RAM_MB}MB" > $OUTPUT_FILE fi }