Skip to content

Testing And Performance Analysis

ZjzMisaka edited this page Jan 22, 2025 · 11 revisions

Unit Testing

PowerThreadPool has been meticulously tested, achieving

  • 100% test coverage
    Codecov
  • Extensive use of Assert

to ensure robustness and reliability in various scenarios.

Benchmark

Report


BenchmarkDotNet v0.14.0, Windows 10 (10.0.19045.3570/22H2/2022Update)
13th Gen Intel Core i5-13400, 1 CPU, 16 logical and 10 physical cores
.NET SDK 9.0.100
  [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 Gen0 Gen1 Allocated
TestDotnetThreadPool 2.008 ms 0.0322 ms 0.0301 ms - - 31.44 KB
TestSmartThreadPool 3.540 ms 0.0107 ms 0.0095 ms 50.7813 23.4375 554.73 KB
TestPowerThreadPool 3.629 ms 0.0116 ms 0.0102 ms 105.4688 70.3125 1107.82 KB