Indexer gRPC in-memory cache benchmark #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Indexer gRPC in-memory cache benchmark | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
run-indexer-grpc-in-memory-cache-benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install grpcurl | |
run: curl -sSL "https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_x86_64.tar.gz" | sudo tar -xz -C /usr/local/bin | |
- name: Rust setup | |
uses: aptos-labs/aptos-core/.github/actions/rust-setup@main | |
with: | |
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }} | |
- name: build and run the benchmark | |
run: | | |
set -ex | |
cargo build --release --bin aptos-indexer-grpc-in-memory-cache-benchmark | |
./target/release/indexer-grpc-in-memory-cache-benchmark |