Skip to content

Commit

Permalink
feat: publish benchmarks stats to GitHub artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
FUDCo committed Feb 11, 2021
1 parent 0dc6335 commit cce6d36
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
strategy:
matrix:
node-version: ['14.x']
if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}}
steps:
- uses: actions/setup-node@v1
with:
Expand All @@ -109,6 +110,10 @@ jobs:

- name: benchmark changes
run: cd packages/swingset-runner && yarn ci:autobench
- uses: actions/upload-artifact@v2
with:
name: benchmarkstats.json
path: packages/swingset-runner/benchstats.json

##################
# Fast-running tests run as a group:
Expand Down
1 change: 1 addition & 0 deletions packages/swingset-runner/autobench
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
node -r esm demo/exchangeBenchmark/prepareContracts.js
node --expose-gc -r esm bin/runner --init --benchmark 100 --statsfile benchstats.json --config demo/exchangeBenchmark/swingset.json run -- --quiet --prime
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@agoric/install-ses';
import bundleSource from '@agoric/bundle-source';

import fs from 'fs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@agoric/install-ses';
import bundleSource from '@agoric/bundle-source';

import fs from 'fs';
Expand Down
1 change: 1 addition & 0 deletions packages/swingset-runner/demo/zoeTests/prepareContracts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@agoric/install-ses';
import bundleSource from '@agoric/bundle-source';

import fs from 'fs';
Expand Down

0 comments on commit cce6d36

Please sign in to comment.