Skip to content

Commit

Permalink
Merge fad4a7d into 08acf84
Browse files Browse the repository at this point in the history
  • Loading branch information
prudepixie authored May 17, 2022
2 parents 08acf84 + fad4a7d commit 4bfbb74
Show file tree
Hide file tree
Showing 9 changed files with 980 additions and 287 deletions.
74 changes: 13 additions & 61 deletions .github/workflows/ci-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
name: Fast Element benchmark jobs

on:
pull_request:
branches:
- master
- releases/*
- features/*
- users/*
push:
paths:
- 'packages/web-components/fast-element/**'
on: [pull_request]

jobs:
setup:
Expand Down Expand Up @@ -43,61 +34,22 @@ jobs:
- name: Prepare workspaces
run: yarn prepare

test:
name: Run all operations for test benchmark
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/upload-artifact@v3
with:
node-version: "16.x"
- run: yarn install --frozen-lockfile --ignore-scripts --prefer-offline
- name: Run tachometer
run: |
cd packages/utilities/fast-benchmarks
yarn install
yarn run benchmark:fast-element:test
- name: Upload results
uses: actions/upload-artifact@v2
name: Upload results folder
path: packages/utilities/fast-benchmarks/results/fast-element_test-update10th.json
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@v2
with:
name: results
path: packages/utilities/fast-benchmarks/results/fast-element_test.json

# update10th:
# name: Run update 10th element benchmark
# needs: [setup]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: "16.x"
# - name: Run tachometer and generate results file
# run: |
# cd packages/utilities/fast-benchmarks
# yarn install
# yarn run benchmark:fast-element:update10th

# - name: Upload results
# uses: actions/upload-artifact@v2
# with:
# name: results
# path: packages/utilities/fast-benchmarks/results/fast-element_test-update10th.json
report-id: results
path: packages/utilities/fast-benchmarks/results/fast-element_test-update10th.json

report_results:
name: Report Results
needs: [test, update10th]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: results
path: packages/utilities/fast-benchmarks/results
# Read all the results and post comment
name: Upload results folder
path: packages/utilities/fast-benchmarks/results/fast-element_localTest-create10k.json
- name: Report Tachometer Result
uses: andrewiggins/tachometer-reporter-action@v2
with:
name: results
path: packages/utilities/fast-benchmarks/results/*.json
report-id: results-create-local
path: packages/utilities/fast-benchmarks/results/fast-element_localTest-create10k.json
Loading

0 comments on commit 4bfbb74

Please sign in to comment.