mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: add new performance-regressions job, using cmd/tools/repeat
This commit is contained in:
parent
70c87137a9
commit
032a3e6b3a
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user