From ab11b45d1d2678cfea2217ac72fc24317eef777d Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Tue, 28 Jun 2022 17:51:05 +0530 Subject: refactor(bench): continuous benchmarking improvements (#14821) --- .github/workflows/bench_cron.yml | 43 ++++++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/bench_cron.yml (limited to '.github/workflows') diff --git a/.github/workflows/bench_cron.yml b/.github/workflows/bench_cron.yml new file mode 100644 index 000000000..4439b6d8f --- /dev/null +++ b/.github/workflows/bench_cron.yml @@ -0,0 +1,43 @@ +name: bench + +on: + # Runs at minute 9 past hour 0, 6, 12, and 18. + schedule: + - cron: 9 0,6,12,18 * * * + workflow_dispatch: + +jobs: + bench: + name: bench / ${{ matrix.os }} / ${{ matrix.deno-version }} + if: github.repository == 'denoland/deno' + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-20.04-xl] + + env: + CARGO_TERM_COLOR: always + RUST_BACKTRACE: full + CI: true + GOOGLE_SVC_KEY: ${{ secrets.GOOGLE_SVC_KEY }} + + steps: + - name: Clone repository + uses: actions/checkout@v2 + with: + submodules: true + persist-credentials: false + + - uses: dtolnay/rust-toolchain@stable + + - name: Build release + run: cargo build --release --locked --all-targets + + - name: Worker info + run: | + cat /proc/cpuinfo + cat /proc/meminfo + + - name: Run and Post benchmarks + run: cargo bench --locked \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53f4a5ea1..c0aa18bb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -603,4 +603,4 @@ jobs: - name: Upload canary version file to dl.deno.land run: | echo ${{ github.sha }} > canary-latest.txt - gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt + gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt \ No newline at end of file -- cgit v1.2.3