Skip to content

Commit

Permalink
added Microsoft.CodeCoverage reference
Browse files Browse the repository at this point in the history
  • Loading branch information
westjeffho committed Jan 3, 2024
1 parent 6d54f70 commit bf60269
Show file tree
Hide file tree
Showing 12 changed files with 270 additions and 275 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Generate code coverage
run: dotnet test --collect "Code Coverage"
- name: Pack
run: dotnet pack -c Release
- name: Push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ BenchmarkDotNet v0.13.10, Windows 11 (10.0.22631.2861/23H2/2023Update/SunValley3
Unknown processor
.NET SDK 8.0.100
[Host] : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2
Job-ZQSTYQ : .NET 6.0.25 (6.0.2523.51912), X64 RyuJIT AVX2
Job-LEHGCO : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2
Job-LLCSMO : .NET 6.0.25 (6.0.2523.51912), X64 RyuJIT AVX2
Job-LSZLMA : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2
```
| Method | Runtime | ItemCount | Mean | Error | StdDev | Ratio | RatioSD | Allocated | Alloc Ratio |
|------- |--------- |---------- |-----------:|---------:|---------:|-------------:|--------:|----------:|------------:|
| **Encode** | **.NET 6.0** | **0** | **170.0 ns** | **1.41 ns** | **1.32 ns** | **baseline** | **** | **40 B** | **** |
| Encode | .NET 8.0 | 0 | 119.0 ns | 0.81 ns | 0.76 ns | 1.43x faster | 0.01x | 40 B | 1.00x more |
| **Encode** | **.NET 6.0** | **0** | **198.8 ns** | **1.90 ns** | **1.69 ns** | **baseline** | **** | **40 B** | **** |
| Encode | .NET 8.0 | 0 | 122.2 ns | 2.41 ns | 2.13 ns | 1.63x faster | 0.03x | 40 B | 1.00x more |
| | | | | | | | | | |
| Decode | .NET 6.0 | 0 | 1,454.1 ns | 5.72 ns | 5.07 ns | baseline | | 1736 B | |
| Decode | .NET 8.0 | 0 | 1,222.6 ns | 7.04 ns | 6.24 ns | 1.19x faster | 0.01x | 1736 B | 1.00x more |
| Decode | .NET 6.0 | 0 | 1,411.0 ns | 19.15 ns | 16.97 ns | baseline | | 560 B | |
| Decode | .NET 8.0 | 0 | 1,269.6 ns | 21.72 ns | 20.32 ns | 1.11x faster | 0.02x | 560 B | 1.00x more |
| | | | | | | | | | |
| **Encode** | **.NET 6.0** | **64** | **696.5 ns** | **3.40 ns** | **3.18 ns** | **baseline** | **** | **40 B** | **** |
| Encode | .NET 8.0 | 64 | 591.7 ns | 5.49 ns | 5.13 ns | 1.18x faster | 0.01x | 40 B | 1.00x more |
| **Encode** | **.NET 6.0** | **64** | **731.4 ns** | **8.99 ns** | **7.97 ns** | **baseline** | **** | **40 B** | **** |
| Encode | .NET 8.0 | 64 | 559.5 ns | 10.67 ns | 11.42 ns | 1.30x faster | 0.03x | 40 B | 1.00x more |
| | | | | | | | | | |
| Decode | .NET 6.0 | 64 | 2,560.5 ns | 11.05 ns | 10.34 ns | baseline | | 7248 B | |
| Decode | .NET 8.0 | 64 | 2,309.8 ns | 8.78 ns | 7.78 ns | 1.11x faster | 0.01x | 7248 B | 1.00x more |
| Decode | .NET 6.0 | 64 | 2,685.3 ns | 41.63 ns | 36.90 ns | baseline | | 7248 B | |
| Decode | .NET 8.0 | 64 | 2,499.6 ns | 36.32 ns | 32.20 ns | 1.07x faster | 0.02x | 7248 B | 1.00x more |
| | | | | | | | | | |
| **Encode** | **.NET 6.0** | **128** | **1,086.3 ns** | **5.70 ns** | **5.34 ns** | **baseline** | **** | **40 B** | **** |
| Encode | .NET 8.0 | 128 | 919.0 ns | 5.88 ns | 4.91 ns | 1.18x faster | 0.01x | 40 B | 1.00x more |
| **Encode** | **.NET 6.0** | **128** | **1,127.0 ns** | **19.01 ns** | **17.78 ns** | **baseline** | **** | **40 B** | **** |
| Encode | .NET 8.0 | 128 | 956.6 ns | 12.05 ns | 9.41 ns | 1.17x faster | 0.02x | 40 B | 1.00x more |
| | | | | | | | | | |
| Decode | .NET 6.0 | 128 | 3,080.1 ns | 7.82 ns | 6.93 ns | baseline | | 9112 B | |
| Decode | .NET 8.0 | 128 | 2,786.5 ns | 15.24 ns | 14.25 ns | 1.11x faster | 0.01x | 9112 B | 1.00x more |
| Decode | .NET 6.0 | 128 | 3,297.3 ns | 41.69 ns | 36.96 ns | baseline | | 9112 B | |
| Decode | .NET 8.0 | 128 | 3,107.9 ns | 44.40 ns | 39.36 ns | 1.06x faster | 0.01x | 9112 B | 1.00x more |
Loading

0 comments on commit bf60269

Please sign in to comment.