From 77e665520e9540595e69a1f7b210b407f9d4c7da Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 6 Dec 2016 23:38:20 +0100 Subject: Windows: don't change thread priority when benchmarking encryption algorithms for more accurate results --- src/Common/Dlgcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/Dlgcode.c') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 04fec471..cc368df5 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -5134,7 +5134,7 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg) startDataUnitNo.Value = 0; /* set priority to critical only when there are 2 or more CPUs on the system */ - if (sysInfo.dwNumberOfProcessors > 1) + if (sysInfo.dwNumberOfProcessors > 1 && (benchmarkType != BENCHMARK_TYPE_ENCRYPTION)) SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL); ci = crypto_open (); -- cgit v1.2.3