Add performance benchmark for shaping, get extents and draw

This commit is contained in:
Ebrahim Byagowi committed 2020-06-25 01:30:07 +04:30
1 parent 12a9d57292
commit 95b1081be4
11 files changed
+318 -2

No files matched your search

+18 -1
View File
@@ -17,7 +17,7 @@ jobs:
- name: install meson and fonttools
run: sudo pip3 install meson fonttools
- name: run
run: meson build -Db_coverage=true -Dglib=enabled -Dcairo=enabled -Dicu=enabled -Dgraphite=enabled -Dfreetype=enabled
run: meson build -Db_coverage=true -Dglib=enabled -Dcairo=enabled -Dicu=enabled -Dgraphite=enabled -Dfreetype=enabled -Dbenchmark=true -Doptimization=2
- name: ci
run: meson test --print-errorlogs -Cbuild
@@ -30,6 +30,23 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
REVISION: ${{ github.sha }}
# waiting for https://github.com/rhysd/github-action-benchmark/issues/36 to happen
# - name: benchmark
# run: build/perf/perf --benchmark_format=json > perf/result.json
# - name: store benchmark result
# uses: rhysd/github-action-benchmark@b2ee598
# if: github.event_name != 'pull_request'
# with:
# name: C++ Benchmark
# tool: 'googlecpp'
# output-file-path: perf/result.json
# gh-pages-branch: gh-pages
# github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
# auto-push: true
# alert-threshold: '150%'
# comment-on-alert: true
# fail-on-alert: true
- name: cov
run: ninja -Cbuild coverage
- uses: codecov/codecov-action@v1