From 2e8cf2f8b6f2c2cedb3c6196cf56e76f0e7502d7 Mon Sep 17 00:00:00 2001 From: fortmarek Date: Wed, 15 Jan 2025 10:03:05 +0100 Subject: [PATCH] Add back warmup runs --- .github/workflows/install.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index b2e9cd5..db4454c 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -79,7 +79,7 @@ jobs: - name: Hyperfine Swift package dependencies with registry working-directory: ${{ matrix.package }} if: ${{ !startsWith(matrix.package, 'xcode-project') && endsWith(matrix.package, '-registry') }} - run: hyperfine --prepare 'rm -rf ~/.swiftpm .build && swift package purge-cache' --runs 5 'swift package --replace-scm-with-registry resolve' --show-output + run: hyperfine --warmup 1 --prepare 'rm -rf ~/.swiftpm .build && swift package purge-cache' --runs 5 'swift package --replace-scm-with-registry resolve' --show-output - name: Resolve Swift package dependencies with registry and xcodebuild working-directory: ${{ matrix.package }} if: ${{ startsWith(matrix.package, 'xcode-project') && endsWith(matrix.package, '-registry') }} @@ -124,7 +124,7 @@ jobs: - name: Hyperfine Swift package dependencies with source control working-directory: ${{ matrix.package }} if: ${{ !startsWith(matrix.package, 'xcode-project') && endsWith(matrix.package, '-scm') }} - run: hyperfine --prepare 'rm -rf ~/.swiftpm .build && swift package purge-cache' --runs 5 'swift package resolve' --show-output + run: hyperfine --warmup 1 --prepare 'rm -rf ~/.swiftpm .build && swift package purge-cache' --runs 5 'swift package resolve' --show-output install-swift-package-manager-main: name: Install with swift-package-manager@main @@ -205,7 +205,7 @@ jobs: - name: Hyperfine Swift package dependencies with registry working-directory: ${{ matrix.package }} if: ${{ endsWith(matrix.package, '-registry') }} - run: hyperfine --prepare 'rm -rf ~/.swiftpm .build' --runs 5 '../swift-package-manager/.build/x86_64-apple-macosx/release/swift-package --replace-scm-with-registry resolve' --show-output + run: hyperfine --warmup 1 --prepare 'rm -rf ~/.swiftpm .build' --runs 5 '../swift-package-manager/.build/x86_64-apple-macosx/release/swift-package --replace-scm-with-registry resolve' --show-output - name: Install Swift package dependencies with source control working-directory: ${{ matrix.package }} if: ${{ endsWith(matrix.package, '-scm') }} @@ -213,4 +213,4 @@ jobs: - name: Hyperfine Swift package dependencies with source control working-directory: ${{ matrix.package }} if: ${{ endsWith(matrix.package, '-scm') }} - run: hyperfine --prepare 'rm -rf ~/.swiftpm .build' --runs 5 '../swift-package-manager/.build/x86_64-apple-macosx/release/swift-package resolve' --show-output + run: hyperfine --warmup 1 --prepare 'rm -rf ~/.swiftpm .build' --runs 5 '../swift-package-manager/.build/x86_64-apple-macosx/release/swift-package resolve' --show-output