Skip to content

Commit b8027a9

Browse files
committed
Add perf testing
1 parent 15bb9fe commit b8027a9

File tree

8 files changed

+10917
-0
lines changed

8 files changed

+10917
-0
lines changed

.github/workflows/perf.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Performance
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
perf:
7+
runs-on: Ubuntu-18.04
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@master
11+
with:
12+
fetch-depth: 1
13+
- name: Run Benchmark
14+
run: |
15+
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
16+
export SWIFTENV_ROOT="$HOME/.swiftenv"
17+
export PATH="$SWIFTENV_ROOT/bin:$PATH"
18+
eval "$(swiftenv init -)"
19+
swiftenv install $TOOLCHAIN_DOWNLOAD
20+
node perf-tester/index.js
21+
env:
22+
TOOLCHAIN_DOWNLOAD: https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.3-SNAPSHOT-2020-08-10-a/swift-wasm-5.3-SNAPSHOT-2020-08-10-a-linux.tar.gz
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ benchmark_setup:
2222
.PHONY: run_benchmark
2323
run_benchmark:
2424
cd IntegrationTests && make -s run_benchmark
25+
26+
.PHONY: perf-tester
27+
perf-tester:
28+
cd perf-tester && npm install && npm run build

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

perf-tester/index.js

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)