From d8c91114e50fdebc8ec5002c56d70553f73ae833 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Thu, 6 May 2021 00:09:07 +0900 Subject: [PATCH] Add commit hash to benchmark document --- .github/workflows/benchmark.yaml | 2 +- benchmark/gendoc.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index cfc4eb6..6742b2e 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -11,7 +11,7 @@ jobs: - name: take benchmarks run: | mkdir -p document - ./benchmark/gendoc.sh | tee document/Benchmarks.md + ./benchmark/gendoc.sh ${{ github.event.issue.number }} | tee document/Benchmarks.md - name: upload to wiki uses: SwiftDocOrg/github-wiki-publish-action@v1 with: diff --git a/benchmark/gendoc.sh b/benchmark/gendoc.sh index 1f4525e..5bebc74 100755 --- a/benchmark/gendoc.sh +++ b/benchmark/gendoc.sh @@ -1,5 +1,6 @@ #!/bin/bash +COMMIT="$1" TARGETS="i386-linux-handwritten c python" TIMEFORMAT='%U' CPU_MODEL=`cat /proc/cpuinfo | grep -m1 'model name' | cut -d: -f2 | sed "s/^ *//g"` @@ -35,6 +36,7 @@ function generate-table { echo "# Environment" echo +echo "- Commit: $COMMIT" echo "- $CPU_MODEL" echo "- $MEM_SIZE" echo "- $UNAME"