HyperThreadingTester Class |
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.
Namespace: DHI.Mike1D.Generic
The HyperThreadingTester type exposes the following members.
Name | Description | |
---|---|---|
HyperThreadingTester |
Default constructor.
|
Name | Description | |
---|---|---|
NumberOfEvals |
Number of evaluations of a polynomial function.
Default is 1000000 | |
NumberOfRepetitions |
Number of times to repeat timing
Default is 3 |
Name | Description | |
---|---|---|
Equals | Determines 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.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates 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
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |