
name: Benchmark
on:
  workflow_dispatch: {}

jobs:
    quicksort-65536:
        strategy:
            matrix:
                BMS_MODIFIER: [19]
                RANDOM_SEED: [0]
                VARIANT: [0]
                RANDOM_PERCENTAGE: [0,10,20,30,40,50,60,70,80,90,100]
                ELEMENTS: [65536]
        container:
            image: quay.io/jonas_peeters/small-boom-config:0.1
        steps:
        -   name: Checkout
            uses: https://gitea.com/actions/checkout@v4
        -   name: Info
            run: |
                echo "BMS_MODIFIER=${{ matrix.BMS_MODIFIER }}"
                echo "RANDOM_SEED=${{ matrix.RANDOM_SEED }}"
                echo "VARIANT=${{ matrix.VARIANT }}"
                echo "Run command: /opt/simulator +permissive +dramsim +dramsim_ini_dir=/opt/dramsim2_ini +max-cycles=1000000000 +permissive-off /opt/pk ./binaries/hello_BMS_MODIFIER_${{ matrix.BMS_MODIFIER }}_RANDOM_SEED_${{ matrix.RANDOM_SEED }}_VARIANT_${{ matrix.VARIANT }}.riscv"
                ls ./binaries/quicksort-65536_BMS_MODIFIER_${{ matrix.BMS_MODIFIER }}_RANDOM_SEED_${{ matrix.RANDOM_SEED }}_VARIANT_${{ matrix.VARIANT }}_RANDOM_PERCENTAGE_${{ matrix.RANDOM_PERCENTAGE }}_ELEMENTS_${{ matrix.ELEMENTS }}.riscv
        -   name: Run
            run: (set -o pipefail && time /opt/simulator +permissive +dramsim +dramsim_ini_dir=/opt/dramsim2_ini +max-cycles=1000000000 +permissive-off /opt/pk ./binaries/quicksort-65536_BMS_MODIFIER_${{ matrix.BMS_MODIFIER }}_RANDOM_SEED_${{ matrix.RANDOM_SEED }}_VARIANT_${{ matrix.VARIANT }}_RANDOM_PERCENTAGE_${{ matrix.RANDOM_PERCENTAGE }}_ELEMENTS_${{ matrix.ELEMENTS }}.riscv </dev/null)
