Skip to content

Commit 25b0cd0

Browse files
authored
Merge pull request #68 from swiftwasm/perf-tests
Add perf testing
2 parents 15bb9fe + eea3c76 commit 25b0cd0

File tree

6 files changed

+849
-0
lines changed

6 files changed

+849
-0
lines changed

.github/workflows/perf.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
make perf-tester
21+
node ci/perf-tester
22+
env:
23+
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
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

+4
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 ci/perf-tester && npm install

0 commit comments

Comments
 (0)