Skip to content

ft/add benchmarks#29

Merged
bolorundurowb merged 4 commits intomasterfrom
ft/add-benchmarks
Mar 19, 2026
Merged

ft/add benchmarks#29
bolorundurowb merged 4 commits intomasterfrom
ft/add-benchmarks

Conversation

@bolorundurowb
Copy link
Copy Markdown
Owner

@bolorundurowb bolorundurowb commented Mar 19, 2026

Add some benchmarking.

Raw results

BenchmarkDotNet v0.14.0, Windows 11 (10.0.26200.8037)

Intel Core Ultra 7 265K, 1 CPU, 20 logical and 20 physical cores

.NET SDK 10.0.201

[Host] : .NET 8.0.25 (8.0.2526.11203), X64 RyuJIT AVX2

DefaultJob : .NET 8.0.25 (8.0.2526.11203), X64 RyuJIT AVX2

Method Length Mean Error StdDev Median Gen0 Allocated
Generate 8 28.80 ns 0.601 ns 1.509 ns 28.06 ns 0.0132 208 B
Generate 9 31.49 ns 0.490 ns 0.481 ns 31.40 ns 0.0138 216 B
Generate 10 33.05 ns 0.306 ns 0.256 ns 33.00 ns 0.0142 224 B
Generate 11 34.02 ns 0.269 ns 0.238 ns 34.02 ns 0.0142 224 B
Generate 12 35.75 ns 0.526 ns 0.466 ns 35.65 ns 0.0142 224 B
Generate 13 37.43 ns 0.452 ns 0.423 ns 37.24 ns 0.0148 232 B
Generate 14 38.96 ns 0.369 ns 0.288 ns 38.90 ns 0.0153 240 B
Generate 15 40.79 ns 0.449 ns 0.375 ns 40.78 ns 0.0153 240 B

// * Hints *
Outliers
ShortIdLengthBenchmarks.Generate: Default -> 4 outliers were removed (35.57 ns..36.65 ns)
ShortIdLengthBenchmarks.Generate: Default -> 1 outlier was removed (35.15 ns)
ShortIdLengthBenchmarks.Generate: Default -> 2 outliers were removed (36.49 ns, 36.66 ns)
ShortIdLengthBenchmarks.Generate: Default -> 1 outlier was removed (36.61 ns)
ShortIdLengthBenchmarks.Generate: Default -> 1 outlier was removed (38.99 ns)
ShortIdLengthBenchmarks.Generate: Default -> 3 outliers were removed (41.90 ns..42.15 ns)
ShortIdLengthBenchmarks.Generate: Default -> 2 outliers were removed (43.88 ns, 44.81 ns)

// * Legends *
Length : Value of the 'Length' parameter
Mean : Arithmetic mean of all measurements
Error : Half of 99.9% confidence interval
StdDev : Standard deviation of all measurements
Median : Value separating the higher half of all measurements (50th percentile)
Gen0 : GC Generation 0 collects per 1000 operations
Allocated : Allocated memory per single operation (managed only, inclusive, 1KB = 1024B)
1 ns : 1 Nanosecond (0.000000001 sec)


BenchmarkDotNet v0.14.0, Windows 11 (10.0.26200.8037)

Intel Core Ultra 7 265K, 1 CPU, 20 logical and 20 physical cores

.NET SDK 10.0.201

[Host] : .NET 8.0.25 (8.0.2526.11203), X64 RyuJIT AVX2

DefaultJob : .NET 8.0.25 (8.0.2526.11203), X64 RyuJIT AVX2

Method Mean Error StdDev Ratio RatioSD
LettersOnly 25.09 ns 0.362 ns 0.321 ns 1.00 0.02
LettersAndSpecials 33.80 ns 0.631 ns 0.590 ns 1.35 0.03
LettersAndNumbers 34.34 ns 0.545 ns 0.455 ns 1.37 0.02
FullCharset 42.99 ns 0.834 ns 0.960 ns 1.71 0.04
Sequential 75.21 ns 0.980 ns 0.869 ns 3.00 0.05

// * Hints *
Outliers
ShortIdOptionsBenchmarks.LettersOnly: Default -> 1 outlier was removed (28.07 ns)
ShortIdOptionsBenchmarks.LettersAndNumbers: Default -> 2 outliers were removed (38.26 ns, 40.97 ns)
ShortIdOptionsBenchmarks.FullCharset: Default -> 1 outlier was removed (47.28 ns)
ShortIdOptionsBenchmarks.Sequential: Default -> 1 outlier was removed (79.53 ns)

// * Legends *
Mean : Arithmetic mean of all measurements
Error : Half of 99.9% confidence interval
StdDev : Standard deviation of all measurements
Ratio : Mean of the ratio distribution ([Current]/[Baseline])
RatioSD : Standard deviation of the ratio distribution ([Current]/[Baseline])
1 ns : 1 Nanosecond (0.000000001 sec)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.42%. Comparing base (8f1843f) to head (0d1ddaa).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #29   +/-   ##
=======================================
  Coverage   93.42%   93.42%           
=======================================
  Files           3        3           
  Lines          76       76           
  Branches       12       12           
=======================================
  Hits           71       71           
  Misses          2        2           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bolorundurowb bolorundurowb merged commit cf148cc into master Mar 19, 2026
2 checks passed
@bolorundurowb bolorundurowb deleted the ft/add-benchmarks branch March 19, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants