Skip to content

Commit e1b78c7

Browse files
committed
Reduce benchmark runs to average for results
Changes would take to long to be reflected on the live site. refs #4
1 parent 15679a2 commit e1b78c7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ To add a new package manager:
4141

4242
## Website
4343

44-
The website is a static site deployed to GitHub Pages. As part of the deployment it downloads stats from the previous 6 benchmarks (run every 6 hours in GitHub Actions), calculates the average, and rebuilds the website. The code for this is in `site` and `.github/workflows/deploy.yml`. The site will automatically rebuild after the benchmarks run, but it can also be triggered by pushing to the `deploy/site` branch.
44+
The website is a static site deployed to GitHub Pages. As part of the deployment it downloads stats from the previous four benchmarks (run every 6 hours in GitHub Actions), calculates the average, and rebuilds the website. The code for this is in `site` and `.github/workflows/deploy.yml`. The site will automatically rebuild after the benchmarks run, but it can also be triggered by pushing to the `deploy/site` branch.

bin/generate_average_stats.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -euf -o pipefail
33

4-
RUN_COUNT=6
4+
RUN_COUNT=4
55
RUN_LIST=$(gh run list --workflow benchmark --json databaseId,event --limit 50 --jq 'map(select(.event=="schedule")) | .[].databaseId')
66
RECENT_RUNS=$(echo "$RUN_LIST" | head -n "$RUN_COUNT")
77
# concatenate the stats files into a single file

site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h2>Package Managers</h2>
8686
</ul>
8787
<p>
8888
The benchmarks run in GitHub Actions every six hours and this site
89-
displays an average of the last six runs.<br />All graphs show elapsed
89+
displays an average of the last four runs.<br />All graphs show elapsed
9090
time in seconds, so <strong>lower = faster</strong>.
9191
</p>
9292
<hr />

0 commit comments

Comments
 (0)