diff --git a/.github/workflows/daily_banchmark.yaml b/.github/workflows/daily_banchmark.yaml new file mode 100644 index 000000000..4867f7097 --- /dev/null +++ b/.github/workflows/daily_banchmark.yaml @@ -0,0 +1,68 @@ +name: Daily Benchmark + +on: + workflow_dispatch: + schedule: + - cron: "0 1 * * *" + +jobs: + release_benchmarks: + name: "Release benchmarks" + runs-on: [self-hosted, Linux, X64, Diff, Gen7] + env: + THREADS: 24 + + steps: + - name: Set up repository + uses: actions/checkout@v2 + with: + # Number of commits to fetch. `0` indicates all history for all + # branches and tags. (default: 1) + fetch-depth: 0 + + - name: Build release binaries + run: | + # Activate toolchain. + source /opt/toolchain-v2/activate + + # Initialize dependencies. + ./init + + # Build only memgraph release binaries. + cd build + cmake -DCMAKE_BUILD_TYPE=release .. + make -j$THREADS + + - name: Run macro benchmarks + run: | + cd tests/macro_benchmark + ./harness QuerySuite MemgraphRunner \ + --groups aggregation 1000_create unwind_create dense_expand match \ + --no-strict + + - name: Upload macro benchmark results + run: | + cd tools/bench-graph-client + virtualenv -p python3 ve3 + source ve3/bin/activate + pip install -r requirements.txt + ./main.py --benchmark-name "macro_benchmark" \ + --benchmark-results-path "../../tests/macro_benchmark/.harness_summary" \ + --github-run-id "${{ github.run_id }}" \ + --github-run-number "${{ github.run_number }}" + + - name: Run mgbench + run: | + cd tests/mgbench + ./benchmark.py --num-workers-for-benchmark 12 --export-results benchmark_result.json pokec/medium/*/* + + - name: Upload mgbench results + run: | + cd tools/bench-graph-client + virtualenv -p python3 ve3 + source ve3/bin/activate + pip install -r requirements.txt + ./main.py --benchmark-name "mgbench" \ + --benchmark-results-path "../../tests/mgbench/benchmark_result.json" \ + --github-run-id "${{ github.run_id }}" \ + --github-run-number "${{ github.run_number }}" diff --git a/.github/workflows/diff.yaml b/.github/workflows/diff.yaml index c0794c596..4d75c0089 100644 --- a/.github/workflows/diff.yaml +++ b/.github/workflows/diff.yaml @@ -365,7 +365,7 @@ jobs: # Initialize dependencies. ./init - # Build only memgraph release binarie. + # Build only memgraph release binaries. cd build cmake -DCMAKE_BUILD_TYPE=release .. make -j$THREADS