Skip to content

Commit

Permalink
add GitHub Actions benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
timheerwagen committed Nov 25, 2024
1 parent 4b3c2d6 commit 04efd7a
Show file tree
Hide file tree
Showing 10 changed files with 343 additions and 386 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Benchmark

on:
push:
branches:
- "**"
- "!master"

jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: NodeJs aufsetzen
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run benchmark
run: npm run benchmark | tee output.txt
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
# Run `github-action-benchmark` action
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
# What benchmark tool the output.txt came from
tool: "benchmarkjs"
# Where the output from the benchmark tool is stored
output-file-path: output.txt
# Where the previous data file is stored
external-data-json-path: ./cache/benchmark-data.json
# GitHub API token to make a commit comment
github-token: ${{ secrets.GH_TOKEN }}
# Enable alert commit comment
comment-on-alert: true
# Enable Job Summary for PRs
summary-always: true
# Upload the updated cache file for the next job by actions/cache
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: NodeJs aufsetzen
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "npm"

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: NodeJs aufsetzen
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "npm"

- name: Install dependencies
Expand Down
302 changes: 151 additions & 151 deletions packages/ts-ics/benchmark/calendar.ics → benchmark/calendar.ics
Original file line number Diff line number Diff line change
@@ -1,152 +1,152 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//kayaposoft.com/enrico//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:deu (bw) Public Holidays
X-WR-CALDESC:deu (bw) Public Holidays
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230101
DTEND;VALUE=DATE:20230102
SUMMARY:Neujahrstag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230106
DTEND;VALUE=DATE:20230107
SUMMARY:Heilige Drei Könige
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230407
DTEND;VALUE=DATE:20230408
SUMMARY:Karfreitag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230410
DTEND;VALUE=DATE:20230411
SUMMARY:Ostermontag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230501
DTEND;VALUE=DATE:20230502
SUMMARY:Tag der Arbeit
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230518
DTEND;VALUE=DATE:20230519
SUMMARY:Christi Himmelfahrt
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230529
DTEND;VALUE=DATE:20230530
SUMMARY:Pfingstmontag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230608
DTEND;VALUE=DATE:20230609
SUMMARY:Fronleichnam
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231003
DTEND;VALUE=DATE:20231004
SUMMARY:Tag der Deutschen Einheit
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231101
DTEND;VALUE=DATE:20231102
SUMMARY:Allerheiligen
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231225
DTEND;VALUE=DATE:20231226
SUMMARY:Weihnachtstag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231226
DTEND;VALUE=DATE:20231227
SUMMARY:Zweiter Weihnachtsfeiertag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//kayaposoft.com/enrico//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:deu (bw) Public Holidays
X-WR-CALDESC:deu (bw) Public Holidays
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230101
DTEND;VALUE=DATE:20230102
SUMMARY:Neujahrstag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230106
DTEND;VALUE=DATE:20230107
SUMMARY:Heilige Drei Könige
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230407
DTEND;VALUE=DATE:20230408
SUMMARY:Karfreitag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230410
DTEND;VALUE=DATE:20230411
SUMMARY:Ostermontag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230501
DTEND;VALUE=DATE:20230502
SUMMARY:Tag der Arbeit
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230518
DTEND;VALUE=DATE:20230519
SUMMARY:Christi Himmelfahrt
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230529
DTEND;VALUE=DATE:20230530
SUMMARY:Pfingstmontag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20230608
DTEND;VALUE=DATE:20230609
SUMMARY:Fronleichnam
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231003
DTEND;VALUE=DATE:20231004
SUMMARY:Tag der Deutschen Einheit
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231101
DTEND;VALUE=DATE:20231102
SUMMARY:Allerheiligen
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231225
DTEND;VALUE=DATE:20231226
SUMMARY:Weihnachtstag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:20231005T213044Z
CREATED:20231005T213044Z
LAST-MODIFIED:20231005T213044Z
DTSTART;VALUE=DATE:20231226
DTEND;VALUE=DATE:20231227
SUMMARY:Zweiter Weihnachtsfeiertag
TRANSP:TRANSPARENT
CATEGORIES:HOLIDAY
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
Loading

0 comments on commit 04efd7a

Please sign in to comment.