Skip to content

Add integration test for server listener #56

Add integration test for server listener

Add integration test for server listener #56

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Benchmark
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
benchmark-1-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Perform the benchmark
run: cd world && go test -bench=. -benchmem -benchtime=2s -cpu=1
benchmark-2-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Perform the benchmark
run: cd world && go test -bench=. -benchmem -benchtime=2s -cpu=2
benchmark-4-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Perform the benchmark
run: cd world && go test -bench=. -benchmem -benchtime=1s -cpu=4
benchmark-8-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Perform the benchmark
run: cd world && go test -bench=. -benchmem -benchtime=1s -cpu=8
benchmark-16-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Perform the benchmark
run: cd world && go test -bench=. -benchmem -benchtime=1s -cpu=16
benchmark-32-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Perform the benchmark
run: cd world && go test -bench=. -benchmem -benchtime=1s -cpu=32
benchmark-64-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Perform the benchmark
run: cd world && go test -bench=. -benchmem -benchtime=1s -cpu=64