Difference between revisions of "Testing Performance"
(→Powershell Memory Test) |
|||
(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
restart machine and verify that now results of test was changed. | restart machine and verify that now results of test was changed. | ||
+ | |||
+ | ==Powershell Memory Test== | ||
+ | <code> | ||
+ | $StartDate=(GET-DATE) | ||
+ | |||
+ | For ($i=0; $i -le 1000; $i++) { | ||
+ | |||
+ | $data = @('Zero','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three') | ||
+ | |||
+ | [System.GC]::Collect() | ||
+ | |||
+ | } | ||
+ | |||
+ | $EndDate=(GET-DATE) | ||
+ | |||
+ | NEW-TIMESPAN –Start $StartDate –End $EndDate | ||
+ | </code> |
Latest revision as of 10:48, 9 October 2020
Some times you think that your machine running slow and some operations take a lot of time.
To measure basic IO performance of your machine and compare with recommended standards run
you will see a benchmark values - keep in mind, normal value is around 2.5 or less.
As it was experienced in some configurations windows 10 updates for Meltdown and Spectre (security vulnerability) decreased performance and in some cased can lead to significant speed decrease therefore it is possible to disable those updates by changing registry as:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
restart machine and verify that now results of test was changed.
Powershell Memory Test
$StartDate=(GET-DATE)
For ($i=0; $i -le 1000; $i++) {
$data = @('Zero','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three','One','Two','Three')
[System.GC]::Collect()
}
$EndDate=(GET-DATE)
NEW-TIMESPAN –Start $StartDate –End $EndDate