Docs: Emphasize entity use by copy instead of pointer #1121
Workflow file for this run
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: Benchmarks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
benchmarks: | |
name: Run benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20.x' | |
- name: Install dependencies | |
run: go get . | |
- name: Run internal benchmarks | |
run: | | |
go test -benchmem -run=^$ -bench ^.*$ ./... | |
- name: Run Arche benchmarks | |
run: | | |
cd benchmark | |
go test -benchmem -run=^$ -bench ^.*$ ./arche/... | |
competition: | |
name: Run competition | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20.x' | |
- name: Install dependencies | |
run: go get . | |
- name: Benchmark vs. Array of Structs | |
run: | | |
cd benchmark | |
go test -benchmem -run=^$ -bench ^.*$ ./competition/array_of_structs/... | |
- name: Benchmark entity relations | |
run: | | |
cd benchmark | |
go test -benchmem -run=^$ -bench ^.*$ ./competition/relations/... | |
- name: Benchmark vs. other ECS impl. | |
run: | | |
cd benchmark | |
go test -benchmem -run=^$ -bench ^.*$ ./competition/pos_vel/... --count 5 | |
go test -benchmem -run=^$ -bench ^.*$ ./competition/add_remove/... --count 5 |