From 14a9468f59e2ccd956f3ed3d5d0bae89c23ef900 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 29 Jun 2024 14:17:21 +0200 Subject: [PATCH] Try self-hosted runner yet another time --- .github/workflows/osrm-backend.yml | 1 - scripts/ci/run_benchmarks.sh | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/osrm-backend.yml b/.github/workflows/osrm-backend.yml index 2dd6a3e07..1c4b61143 100644 --- a/.github/workflows/osrm-backend.yml +++ b/.github/workflows/osrm-backend.yml @@ -16,7 +16,6 @@ env: CASHER_TIME_OUT: 599 # one second less than 10m to avoid 10m timeout error: https://github.com/Project-OSRM/osrm-backend/issues/2742 CMAKE_VERSION: 3.21.2 ENABLE_NODE_BINDINGS: "ON" - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/scripts/ci/run_benchmarks.sh b/scripts/ci/run_benchmarks.sh index 34bb54163..0d0324d13 100755 --- a/scripts/ci/run_benchmarks.sh +++ b/scripts/ci/run_benchmarks.sh @@ -40,13 +40,12 @@ function measure_peak_ram_and_time { # on macOS time has different parameters, so simply run command on macOS $COMMAND > /dev/null 2>&1 else - $COMMAND - # OUTPUT=$(/usr/bin/time -f "%e %M" $COMMAND 2>&1 | tail -n 1) + 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 }