| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
name: bench-ec2-any |
| 6 |
permissions: |
| 7 |
contents: read |
| 8 |
on: |
| 9 |
workflow_dispatch: |
| 10 |
inputs: |
| 11 |
name: |
| 12 |
description: Alternative name of instance |
| 13 |
default: Graviton2 |
| 14 |
ec2_instance_type: |
| 15 |
description: Type if EC2 instance to benchmark on |
| 16 |
default: t4g.small |
| 17 |
ec2_ami: |
| 18 |
description: AMI ID |
| 19 |
type: choice |
| 20 |
options: |
| 21 |
- ubuntu-latest (x86_64) |
| 22 |
- ubuntu-latest (aarch64) |
| 23 |
- ubuntu-latest (custom AMI) |
| 24 |
default: ubuntu-latest (aarch64) |
| 25 |
ec2_ami_id: |
| 26 |
description: AMI ID |
| 27 |
required: false |
| 28 |
default: ami-0c4e709339fa8521a |
| 29 |
cflags: |
| 30 |
description: Custom CFLAGS for compilation |
| 31 |
default: |
| 32 |
archflags: |
| 33 |
description: Custom ARCH flags for compilation |
| 34 |
default: '' |
| 35 |
ldflags: |
| 36 |
description: Custom LDFLAGS for linking |
| 37 |
default: '' |
| 38 |
opt: |
| 39 |
description: Benchmark optimized, non-optimized, or both |
| 40 |
type: choice |
| 41 |
options: |
| 42 |
- all |
| 43 |
- opt |
| 44 |
- no_opt |
| 45 |
bench_extra_args: |
| 46 |
description: Additional command line to be appended to `tests bench` script |
| 47 |
default: '' |
| 48 |
compiler: |
| 49 |
description: Compiler to use. When unset, default nix shell is used. |
| 50 |
default: '' |
| 51 |
jobs: |
| 52 |
bench-ec2-any: |
| 53 |
name: Ad-hoc benchmark on $${{ inputs.ec2_instance_type }} |
| 54 |
permissions: |
| 55 |
contents: 'read' |
| 56 |
id-token: 'write' |
| 57 |
uses: ./.github/workflows/bench_ec2_reusable.yml |
| 58 |
with: |
| 59 |
ec2_instance_type: ${{ inputs.ec2_instance_type }} |
| 60 |
ec2_ami: ${{ inputs.ec2_ami }} |
| 61 |
ec2_ami_id: ${{ inputs.ec2_ami_id }} |
| 62 |
cflags: ${{ inputs.cflags }} |
| 63 |
archflags: ${{ inputs.archflags }} |
| 64 |
ldflags: ${{ inputs.ldflags }} |
| 65 |
opt: ${{ inputs.opt }} |
| 66 |
name: ${{ inputs.name }} |
| 67 |
store_results: false |
| 68 |
bench_extra_args: ${{ inputs.bench_extra_args }} |
| 69 |
compiler: ${{ inputs.compiler }} |
| 70 |
secrets: inherit |