//
stai leggendo...
domanda

WMI vs CIM speed tests–the final round

Richard Siddaway's Blog

As a final test I want to see what happened when I ran multiple commands against the remote machine.

PS> 1..100 |
foreach {
Measure-Command -Expression{1..100 | foreach {
Get-WmiObject -Class Win32_ComputerSystem -ComputerName W12SUS;
Get-WmiObject -Class Win32_OperatingSystem -ComputerName W12SUS;
Get-WmiObject -Class Win32_LogicalDisk -ComputerName W12SUS}}
} |
Measure-Object -Average TotalMilliseconds

Count    : 100
Average  : 6986.797156
Sum      :
Maximum  :
Minimum  :
Property : TotalMilliseconds

PS> 1..100 |
foreach {
Measure-Command -Expression{1..100 | foreach {
Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName W12SUS;
Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName W12SUS;
Get-CimInstance -ClassName Win32_LogicalDisk -ComputerName W12SUS}}
} |
Measure-Object -Average TotalMilliseconds

Count    : 100
Average  : 8430.833188
Sum      :
Maximum  :
Minimum  :
Property : TotalMilliseconds

 

PS> $sess = New-CimSession -ComputerName W12SUS
PS> 1..100 |
foreach {
Measure-Command -Expression{1..100 | foreach {
Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $sess;
Get-CimInstance -ClassName Win32_OperatingSystem -CimSession $sess;
Get-CimInstance -ClassName Win32_LogicalDisk -CimSession $sess}}
} |
Measure-Object -Average TotalMilliseconds

Count    : 100
Average …

View original post 69 altre parole

Annunci

Discussione

Non c'è ancora nessun commento.

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: