mirror of
https://github.com/nineties/planckforth
synced 2024-12-26 21:58:42 +01:00
Add commit hash to benchmark document
This commit is contained in:
parent
dad711718a
commit
d8c91114e5
2 changed files with 3 additions and 1 deletions
2
.github/workflows/benchmark.yaml
vendored
2
.github/workflows/benchmark.yaml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
- name: take benchmarks
|
- name: take benchmarks
|
||||||
run: |
|
run: |
|
||||||
mkdir -p document
|
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
|
- name: upload to wiki
|
||||||
uses: SwiftDocOrg/github-wiki-publish-action@v1
|
uses: SwiftDocOrg/github-wiki-publish-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
COMMIT="$1"
|
||||||
TARGETS="i386-linux-handwritten c python"
|
TARGETS="i386-linux-handwritten c python"
|
||||||
TIMEFORMAT='%U'
|
TIMEFORMAT='%U'
|
||||||
CPU_MODEL=`cat /proc/cpuinfo | grep -m1 'model name' | cut -d: -f2 | sed "s/^ *//g"`
|
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 "# Environment"
|
||||||
echo
|
echo
|
||||||
|
echo "- Commit: $COMMIT"
|
||||||
echo "- $CPU_MODEL"
|
echo "- $CPU_MODEL"
|
||||||
echo "- $MEM_SIZE"
|
echo "- $MEM_SIZE"
|
||||||
echo "- $UNAME"
|
echo "- $UNAME"
|
||||||
|
|
Loading…
Reference in a new issue