perf: manually inline hot-path parsing routines for +33% without LTO #51
This file contains hidden or 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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| build-and-test: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| toolchain: | |
| - {compiler: gcc, version: 9} | |
| - {compiler: gcc, version: 10} | |
| - {compiler: gcc, version: 11} | |
| - {compiler: gcc, version: 12} | |
| - {compiler: gcc, version: 13} | |
| - {compiler: gcc, version: 14} | |
| - {compiler: intel, version: '2023.2'} | |
| - {compiler: intel, version: '2024.0'} | |
| - {compiler: intel, version: '2025.0'} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup fortran | |
| uses: fortran-lang/setup-fortran@v1.6.3 | |
| with: | |
| compiler: ${{ matrix.toolchain.compiler }} | |
| version: ${{ matrix.toolchain.version }} | |
| - name: Setup fpm | |
| uses: fortran-lang/setup-fpm@v9 | |
| with: | |
| fpm-version: 'v0.13.0' | |
| - name: Build | |
| run: | | |
| fpm build --profile debug | |
| - name: Run unit tests | |
| run: fpm test check | |
| - name: Run benchmarks | |
| run: fpm test --profile release --target benchmark_compare |