Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add benchmarks #22

Merged
merged 7 commits into from
Jan 11, 2025
Merged

feat: add benchmarks #22

merged 7 commits into from
Jan 11, 2025

Conversation

vbreuss
Copy link
Contributor

@vbreuss vbreuss commented Jan 11, 2025

Add benchmarks for creating a TimeSpan, DateTime, DateOnly, TimeOnly or DateTimeOffset.

@vbreuss vbreuss added the enhancement New feature or request label Jan 11, 2025
@vbreuss vbreuss self-assigned this Jan 11, 2025
Copy link

👽 Mutation Results

Mutation testing badge

aweXpect.Chronology

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Total Detected Total Undetected Total Mutants

The final mutation score is NaN%

Coverage Thresholds: high:80 low:60 break:0

Copy link

github-actions bot commented Jan 11, 2025

Test Results

  4 files  ±0    4 suites  ±0   0s ⏱️ ±0s
 94 tests ±0   93 ✅ ±0  1 💤 ±0  0 ❌ ±0 
276 runs  ±0  275 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 5c83f7c. ± Comparison against base commit b5464ab.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 11, 2025

🚀 Benchmark Results

Details

BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.404
[Host] : .NET 8.0.11 (8.0.1124.51707), X64 RyuJIT AVX2
DefaultJob : .NET 8.0.11 (8.0.1124.51707), X64 RyuJIT AVX2

Method Mean Error StdDev Allocated
DateOnly_aweXpect 2.853 ns 0.0258 ns 0.0229 ns -
DateOnly_DotNet 3.405 ns 0.0319 ns 0.0298 ns -
DateTime_aweXpect 15.467 ns 0.0247 ns 0.0193 ns -
DateTime_DotNet 3.326 ns 0.0025 ns 0.0021 ns -
DateTimeOffset_aweXpect 21.049 ns 0.0745 ns 0.0697 ns -
DateTimeOffset_DotNet 8.919 ns 0.0342 ns 0.0303 ns -
TimeOnly_aweXpect 11.550 ns 0.0539 ns 0.0478 ns -
TimeOnly_DotNet 2.169 ns 0.0199 ns 0.0176 ns -
TimeSpan_aweXpect 1.888 ns 0.0113 ns 0.0100 ns -
TimeSpan_DotNet 1.173 ns 0.0123 ns 0.0115 ns -

@vbreuss vbreuss enabled auto-merge (squash) January 11, 2025 10:17
@vbreuss vbreuss merged commit e82a85e into main Jan 11, 2025
12 checks passed
@vbreuss vbreuss deleted the topic/add-benchmarks branch January 11, 2025 10:32
Copy link

This is addressed in release v0.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request state: released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant