Benchpress

What Is The Fastest Way To Get All Loaded Modules

(@ 2095 Mhz)

Technique RepeatCount Time RelativeSpeed Throughput
Get-Module -ExpandProperty Name 10 00:00:00.002874 1x 3479.11/s
foreach Get-Module 10 00:00:00.003707 1.29x 2697.16/s
ExecutionContextAndHashtable 10 00:00:00.008714 3.03x 1147.47/s
ExecutionContextAndArrayList 10 00:00:00.013802 4.8x 724.52/s