forked from lqdev/markdown-ld-kb
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.62 KB
/
benchmarks.yml
File metadata and controls
61 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Benchmarks
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 1'
env:
DOTNET_VERSION: '10.0.x'
jobs:
benchmark:
name: BenchmarkDotNet (${{ matrix.suite }})
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- suite: fuzzy-edit-distance
filter: '*FuzzyEditDistanceBenchmarks*'
- suite: graph-build
filter: '*GraphBuildBenchmarks*'
- suite: graph-search
filter: '*GraphSearchBenchmarks*'
- suite: tiktoken-search
filter: '*TiktokenSearchBenchmarks*'
- suite: graph-persistence
filter: '*GraphPersistenceBenchmarks*'
- suite: graph-lifecycle
filter: '*GraphLifecycleBenchmarks*'
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore MarkdownLd.Kb.slnx
- name: Build
run: dotnet build MarkdownLd.Kb.slnx --configuration Release --no-restore
- name: Run ${{ matrix.suite }} benchmarks
run: dotnet run --project benchmarks/MarkdownLd.Kb.Benchmarks -c Release -- --filter "${{ matrix.filter }}"
- name: Upload benchmark artifacts
uses: actions/upload-artifact@v7
with:
name: benchmarkdotnet-results-${{ matrix.suite }}
path: artifacts/benchmarks/results
if-no-files-found: error
retention-days: 14