Skip to content

Templates, Benchmarks and more CI#1

Merged
jsneedles merged 9 commits intomainfrom
templates_and_benchmarks
Jan 9, 2026
Merged

Templates, Benchmarks and more CI#1
jsneedles merged 9 commits intomainfrom
templates_and_benchmarks

Conversation

@jsneedles
Copy link
Member

This adds support for creating & listing Templates.

Also a lot of code reorganization/tweaking.

Also, because fun - Benchmarks!

Finally, CI improvements.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Test results

78 tests   78 ✅  0s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit f97e7d3.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Test results

78 tests   78 ✅  0s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit be6e681.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Benchmark Results

No benchmark results found.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Benchmark Results

HtmlCssToImage.Benchmarks.Benchmarks.HmacBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.101
  [Host]  : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method Mean Error StdDev Ratio RatioSD Gen0 Gen1 Gen2 Allocated Alloc Ratio
Hmac_Standard_Instance 2.063 μs 0.0311 μs 0.0291 μs 1.00 0.02 0.1030 0.0076 0.0076 - NA
HCTI_HmacToken_Optimized 1.867 μs 0.0111 μs 0.0098 μs 0.91 0.01 0.0134 - - 152 B NA

HtmlCssToImage.Benchmarks.Benchmarks.MakeAuthHeaderBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.101
  [Host]  : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method Mean Error StdDev Ratio Gen0 Allocated Alloc Ratio
AuthHeader_Standard_StringFormat 89.60 ns 0.676 ns 0.599 ns 1.00 0.0371 376 B 1.00
HCTI_AuthHeader_Optimized 75.27 ns 0.504 ns 0.447 ns 0.84 0.0221 168 B 0.45

HtmlCssToImage.Benchmarks.Benchmarks.QueryStringEncoderBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.101
  [Host]  : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method Mean Error StdDev Ratio Gen0 Allocated Alloc Ratio
BuiltIn_HttpUtility 1.082 μs 0.0043 μs 0.0038 μs 1.00 0.2937 2976 B 1.00
HCTI_QueryStringEncoder 1.056 μs 0.0053 μs 0.0050 μs 0.98 0.1450 744 B 0.25

HtmlCssToImage.Benchmarks.Benchmarks.TemplateListUrlBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.101
  [Host]  : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.1 (10.0.1, 10.0.125.57005), X64 RyuJIT x86-64-v3

Job=.NET 10  EnvironmentVariables=DOTNET_TieredPGO=0  Runtime=.NET 10.0  
Server=True  MaxIterationCount=20  MaxWarmupIterationCount=5  
MinWarmupIterationCount=2  

Method templateId nextPageStart Mean Error StdDev Ratio RatioSD Gen0 Allocated Alloc Ratio
Basic ? ? 65.53 ns 0.350 ns 0.311 ns 1.00 0.01 0.0210 160 B 1.00
Optimized ? ? 24.90 ns 0.381 ns 0.357 ns 0.38 0.01 0.0095 96 B 0.60
Basic t-daa(...)2efe6 [38] ? 91.57 ns 1.217 ns 1.139 ns 1.00 0.02 0.0340 344 B 1.00
Optimized t-daa(...)2efe6 [38] ? 30.27 ns 0.124 ns 0.104 ns 0.33 0.00 0.0160 176 B 0.51
Basic t-daa(...)2efe6 [38] 1735689600 84.85 ns 1.100 ns 1.028 ns 1.00 0.02 0.0323 328 B 1.00
Optimized t-daa(...)2efe6 [38] 1735689600 44.01 ns 0.618 ns 0.578 ns 0.52 0.01 0.0215 224 B 0.68

@jsneedles jsneedles merged commit 343935f into main Jan 9, 2026
9 checks passed
@jsneedles jsneedles deleted the templates_and_benchmarks branch January 9, 2026 18:03
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.

1 participant