Skip to content

Latest commit

 

History

History

benchmarks

Micro Benchmarks

This folder contains micro benchmarks that test the performance of PSResourceGet.

Quick Start

You can run the benchmarks directly using dotnet run in this directory:

  1. To run the benchmarks in Interactive Mode, where you will be asked which benchmark(s) to run:

    dotnet run -c Release -f net6.0
    
  2. To list all available benchmarks (read more):

    dotnet run -c Release -f net6.0 --list [flat/tree]
    
  3. To filter the benchmarks using a glob pattern applied to namespace.typeName.methodName (read more]):

    dotnet run -c Release -f net6.0 --filter *script* --list flat
    
  4. To profile the benchmarked code and produce an ETW Trace file (read more)

    dotnet run -c Release -f net6.0 --filter *script* --profiler ETW
    

References