Skip to content

Add more image params#2

Merged
jsneedles merged 1 commit intomainfrom
new_params_3_1
Mar 1, 2026
Merged

Add more image params#2
jsneedles merged 1 commit intomainfrom
new_params_3_1

Conversation

@jsneedles
Copy link
Member

Support for new parameters:

  • viewport_mobile
  • viewport_touch
  • viewport_landscape
  • media_type

@github-actions
Copy link

github-actions bot commented Mar 1, 2026

Test results

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

Results for commit 2009653.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Mar 1, 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.103
  [Host]  : .NET 10.0.3 (10.0.3, 10.0.326.7603), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.3 (10.0.3, 10.0.326.7603), 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
Hmac_Standard_Instance 2.022 μs 0.0130 μs 0.0101 μs 1.00 0.0648 696 B 1.00
HCTI_HmacToken_Optimized 1.830 μs 0.0026 μs 0.0025 μs 0.90 0.0134 152 B 0.22

HtmlCssToImage.Benchmarks.Benchmarks.MakeAuthHeaderBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.71GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.103
  [Host]  : .NET 10.0.3 (10.0.3, 10.0.326.7603), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.3 (10.0.3, 10.0.326.7603), 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 92.89 ns 1.081 ns 0.902 ns 1.00 0.0370 376 B 1.00
HCTI_AuthHeader_Optimized 75.71 ns 0.322 ns 0.285 ns 0.82 0.0221 168 B 0.45

HtmlCssToImage.Benchmarks.Benchmarks.QueryStringEncoderBenchmark


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.103
  [Host]  : .NET 10.0.3 (10.0.3, 10.0.326.7603), X64 RyuJIT x86-64-v3
  .NET 10 : .NET 10.0.3 (10.0.3, 10.0.326.7603), 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.227 μs 0.0170 μs 0.0133 μs 1.00 0.2937 2976 B 1.00
HCTI_QueryStringEncoder 1.038 μs 0.0065 μs 0.0057 μs 0.85 0.1450 744 B 0.25

HtmlCssToImage.Benchmarks.Benchmarks.TemplateListUrlBenchmark


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.103
  [Host]  : .NET 10.0.3 (10.0.3, 10.0.326.7603), X64 RyuJIT x86-64-v4
  .NET 10 : .NET 10.0.3 (10.0.3, 10.0.326.7603), X64 RyuJIT x86-64-v4

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 ? ? 62.69 ns 1.113 ns 0.987 ns 1.00 0.02 0.0210 160 B 1.00
Optimized ? ? 23.07 ns 0.142 ns 0.119 ns 0.37 0.01 0.0095 96 B 0.60
Basic t-daa(...)2efe6 [38] ? 90.58 ns 0.600 ns 0.532 ns 1.00 0.01 0.0340 344 B 1.00
Optimized t-daa(...)2efe6 [38] ? 34.08 ns 0.156 ns 0.122 ns 0.38 0.00 0.0172 176 B 0.51
Basic t-daa(...)2efe6 [38] 1735689600 81.31 ns 0.382 ns 0.357 ns 1.00 0.01 0.0323 328 B 1.00
Optimized t-daa(...)2efe6 [38] 1735689600 47.17 ns 0.151 ns 0.134 ns 0.58 0.00 0.0219 224 B 0.68

@jsneedles jsneedles merged commit 93cef43 into main Mar 1, 2026
9 checks passed
@jsneedles jsneedles deleted the new_params_3_1 branch March 1, 2026 19:08
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