Skip to content

Benchmark

Benchmark #39

Workflow file for this run

name: Benchmark
on:
workflow_dispatch: {}
schedule:
- cron: "00 00 * * 1"
env:
CI_RUST_TOOLCHAIN: 1.70.0
jobs:
benchmark:
name: benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: sudo bash ./.github/scripts/install_deps.sh
- uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: ${{ env.CI_RUST_TOOLCHAIN }}
override: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: "xline"
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- run: |
cd scripts
cp ../target/release/{xline,benchmark} .
docker build . -t ghcr.io/xline-kv/xline:latest
docker pull datenlord/etcd:v3.5.5
bash ./benchmark.sh
- uses: actions/upload-artifact@v1
with:
name: benchmark-output
path: scripts/out