Skip to content

Commit

Permalink
Merge branch 'main' into hotfix/dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
mycroes committed Mar 13, 2024
2 parents df9fd20 + f2caba4 commit a79f5fd
Show file tree
Hide file tree
Showing 55 changed files with 7,130 additions and 340 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ jobs:
create_nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Get all history to allow automatic versioning

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
uses: gittools/actions/gitversion/setup@v1
with:
versionSpec: '5.x'
includePrerelease: true
preferLatestVersion: true

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
uses: gittools/actions/gitversion/execute@v1

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4

- run: >
dotnet pack
Expand All @@ -53,7 +53,7 @@ jobs:
/p:PackageVersion=${{ steps.gitversion.outputs.semVer }}
--output ${{ env.NuGetDirectory }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: nuget
if-no-files-found: error
Expand All @@ -65,11 +65,13 @@ jobs:
run_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
- name: Build
run: dotnet build --configuration Release -v q
- name: Run tests
run: dotnet test --configuration Release
run: dotnet test --configuration Release --no-build --verbosity normal --logger GitHubActions

deploy:
# Publish only when creating a GitHub Release
Expand All @@ -79,13 +81,13 @@ jobs:
runs-on: ubuntu-latest
needs: [ create_nuget, run_test ]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: nuget
path: ${{ env.NuGetDirectory }}

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4

# Publish all NuGet packages to NuGet.org
# Use --skip-duplicate to prevent errors if a package with the same version already exists.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
``` ini

BenchmarkDotNet=v0.13.5, OS=Windows 10 (10.0.19045.3086/22H2/2022Update)
Intel Core i9-9900K CPU 3.60GHz (Coffee Lake), 1 CPU, 16 logical and 8 physical cores
.NET SDK=7.0.302
[Host] : .NET 7.0.5 (7.0.523.17405), X64 RyuJIT AVX2
Job-RMFIHR : .NET 7.0.5 (7.0.523.17405), X64 RyuJIT AVX2

Runtime=.NET 7.0 Toolchain=net70

```
| Method | Mean | Error | StdDev | Code Size | Allocated |
|----------------------------------------- |---------:|----------:|----------:|----------:|----------:|
| MemoryMarshal_Cast | 6.517 ns | 0.1357 ns | 0.1270 ns | 395 B | - |
| Unsafe_WriteUnaligned | 4.462 ns | 0.1186 ns | 0.1543 ns | 145 B | - |
| Unsafe_WriteUnaligned_With_Optimizations | 2.547 ns | 0.0678 ns | 0.0634 ns | 116 B | - |
| Unsafe_As_Struct | 6.453 ns | 0.1559 ns | 0.1382 ns | 220 B | - |
Loading

0 comments on commit a79f5fd

Please sign in to comment.