-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (51 loc) · 1.44 KB
/
benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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.21.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.21.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