HyperThreadingTester Class

Class to test if system has Hyper-Threading enabled.

A polynomial function is evaluated a number of times in parallel, and timed using various number of threads. From those timings, it is evaluated whether hyper-threading is enabled or not

This will only return a correct value if the system being evaluated is mostly idle. If the system is stressed, this may give incorrect results.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class HyperThreadingTester
Inheritance
Object    HyperThreadingTester

Constructors

HyperThreadingTester Default constructor.

Properties

NumberOfEvals Number of evaluations of a polynomial function.

Default is 1000000

NumberOfRepetitions Number of times to repeat timing

Default is 3

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Evaluate Evaluate whether Hyper Threading is enabled.
Evaluate(Double) Evaluate whether Hyper Threading is enabled.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
TimeAll Give timings (in seconds) for all number of threads from 1 to Environment.ProcessorCount
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also