diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 1d61610..e67a8d4 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -10,7 +10,7 @@ jobs: benchmarks: name: Benchmarks if: startsWith(github.head_ref, 'renovate/') == false - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 permissions: pull-requests: write steps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f53a2d..d30230f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,13 +24,20 @@ jobs: build-linux: name: Build, Test & Pack (Linux) - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 6.0.x + 8.0.x + - name: Build run: dotnet build -c Release -p:ContinuousIntegrationBuild=true @@ -66,7 +73,7 @@ jobs: name: Deploy to GitHub needs: [build-windows, build-linux] if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Download artifacts uses: actions/download-artifact@v4 @@ -79,7 +86,7 @@ jobs: name: Deploy to NuGet needs: [build-windows, build-linux] if: startsWith(github.ref, 'refs/tags/v') - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Download artifacts uses: actions/download-artifact@v4 diff --git a/README.md b/README.md index fe270cf..853b155 100644 --- a/README.md +++ b/README.md @@ -45,21 +45,19 @@ var hash = sha256(user).ToLowerHexString(); // 62565a67bf16004038c502eb68907411f ## Benchmarks -```ini -BenchmarkDotNet v0.13.9+228a464e8be6c580ad9408e98f18813f6407fb5a, Ubuntu 22.04.3 LTS (Jammy Jellyfish) -Intel Xeon Platinum 8272CL CPU 2.60GHz, 1 CPU, 2 logical and 2 physical cores -.NET SDK 7.0.402 - [Host] : .NET 7.0.12 (7.0.1223.47720), X64 RyuJIT AVX2 - DefaultJob : .NET 7.0.12 (7.0.1223.47720), X64 RyuJIT AVX2 +``` +BenchmarkDotNet v0.13.12, Ubuntu 24.04 LTS (Noble Numbat) +AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores +.NET SDK 8.0.300 + [Host] : .NET 8.0.5 (8.0.524.21615), X64 RyuJIT AVX2 + DefaultJob : .NET 8.0.5 (8.0.524.21615), X64 RyuJIT AVX2 ``` | Method | Mean | Error | StdDev | Median | Gen0 | Allocated | |-------------------- |---------:|----------:|----------:|---------:|-------:|----------:| -| MD5_Model_To_Hex | 2.613 μs | 0.0076 μs | 0.0071 μs | 2.614 μs | 0.0725 | 1.34 KB | -| SHA1_Model_To_Hex | 2.910 μs | 0.0172 μs | 0.0161 μs | 2.910 μs | 0.0801 | 1.49 KB | -| SHA256_Model_To_Hex | 3.540 μs | 0.0064 μs | 0.0053 μs | 3.539 μs | 0.1030 | 1.93 KB | -| SHA512_Model_To_Hex | 5.449 μs | 0.0173 μs | 0.0153 μs | 5.449 μs | 0.1678 | 3.12 KB | - - +| MD5_Model_To_Hex | 1.343 μs | 0.0130 μs | 0.0122 μs | 1.340 μs | 0.0801 | 1.34 KB | +| SHA1_Model_To_Hex | 1.675 μs | 0.0131 μs | 0.0123 μs | 1.674 μs | 0.0896 | 1.49 KB | +| SHA256_Model_To_Hex | 2.022 μs | 0.0187 μs | 0.0166 μs | 2.024 μs | 0.1144 | 1.93 KB | +| SHA512_Model_To_Hex | 2.937 μs | 0.0268 μs | 0.0250 μs | 2.931 μs | 0.1907 | 3.12 KB | ## License diff --git a/tests/benchmarks/FingerprintBuilder.BenchmarkTests.csproj b/tests/benchmarks/FingerprintBuilder.BenchmarkTests.csproj index a98b8d0..0995c0e 100644 --- a/tests/benchmarks/FingerprintBuilder.BenchmarkTests.csproj +++ b/tests/benchmarks/FingerprintBuilder.BenchmarkTests.csproj @@ -1,6 +1,6 @@  - net7.0 + net8.0 Exe diff --git a/tests/units/FingerprintBuilder.Tests.csproj b/tests/units/FingerprintBuilder.Tests.csproj index cebde44..d81789d 100644 --- a/tests/units/FingerprintBuilder.Tests.csproj +++ b/tests/units/FingerprintBuilder.Tests.csproj @@ -1,7 +1,7 @@  - net6.0 - net462;net6.0 + net6.0;net8.0 + net462;net6.0;net8.0 true opencover $(NoWarn);CS0618