From 591d26720114afaaa20d2428a29fc955ad02c0e5 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Mon, 11 Jan 2021 17:21:32 +0900 Subject: [PATCH] fix bug --- .github/workflows/benchmark.yaml | 2 +- benchmark/gendoc.sh | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 6690c11..b640771 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v1 - name: take benchmarks run: | - ./benchmark/gendoc.sh + ./benchmark/gendoc.sh | tee document/benchmark.md - name: upload to wiki uses: SwiftDocOrg/github-wiki-publish-action@v1 with: diff --git a/benchmark/gendoc.sh b/benchmark/gendoc.sh index c3c7c7a..b04658b 100755 --- a/benchmark/gendoc.sh +++ b/benchmark/gendoc.sh @@ -1,8 +1,5 @@ #!/bin/bash -mkdir -p document - -FILE=document/benchmark.md TARGETS="i386-linux-handwritten c" TIMEFORMAT='%U' function benchmark () { @@ -29,7 +26,7 @@ function generate-table { t=`benchmark $2 $3` echo "| $impl | $t |" done -} | tee -a $FILE +} -echo "# Benchmarks" | tee $FILE +echo "# Benchmarks" generate-table "Bootstrap Time" bootstrap 5