ci: add new performance-regressions job, using cmd/tools/repeat

pull/6536/head
Delyan Angelov 2020-10-02 12:39:39 +03:00
parent 70c87137a9
commit 032a3e6b3a
1 changed files with 23 additions and 1 deletions

View File

@ -20,6 +20,29 @@ jobs:
# - name: Run v test-fmt
# run: echo "TODO" #./v test-fmt
performance-regressions:
runs-on: ubuntu-18.04
env:
VFLAGS: -cc /var/tmp/tcc/bin/tcc -cflags -bt10
steps:
- uses: actions/checkout@v2
- name: Environment info
run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF
- name: Build local v
run: (make -j4 && ./v -cg -o v cmd/v)
- name: Clone & Build vmaster/v
run: |
git clone --depth=1 https://github.com/vlang/v vmaster/
(cd vmaster; make -j4 && ./v -cg -o v cmd/v)
- name: V versions
run: ./v version && ./vmaster/v version
- name: Build the repeat tool
run: ./v cmd/tools/repeat.v
- name: Repeat -o v.c cmd/v
run: cmd/tools/repeat --count 10 --warmup 3 --fail_percent 10 './v -show-timings -o v.c cmd/v' './vmaster/v -show-timings -o v.c cmd/v'
- name: Repeat -o hw.c examples/hello_world.v
run: cmd/tools/repeat --count 10 --warmup 3 --fail_percent 10 './v -show-timings -o hw.c examples/hello_world.v' './vmaster/v -show-timings -o hw.c examples/hello_world.v'
ubuntu-tcc:
runs-on: ubuntu-18.04
env:
@ -524,4 +547,3 @@ jobs:
with:
name: server
path: ${{github.workspace}}/reports/servers/index.html