diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000000..792f638d3b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,38 @@ +name: Go client benchmarks + +on: + push: + paths: + - babushka-core/** + - submodules/** + - "go/**" + - ".github/workflows/go.yml" + pull_request: + paths: + - babushka-core/** + - submodules/** + - "go/**" + - ".github/workflows/go.yml" + workflow_dispatch: + inputs: + name: + required: false + type: string + +run-name: ${{ inputs.name == '' && format('{0} @ {1}', github.ref_name, github.sha) || inputs.name }} + +jobs: + go-benchmark: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Start Redis + run: docker run -p 6379:6379 -p 8001:8001 -d redis/redis-stack + + - name: Run go benchmark + working-directory: benchmarks + run: install_and_test.sh -go -tasks 10 -data 200 -clients 2 -no-tls