|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slf4j.helpers.BogoPerf
public class BogoPerf
BogoPerf is used to check that the time required to perform a certain operation does not deteriorate over time. BogoPerf adjusts to the CPU speed and capabilities of the host.
Constructor Summary | |
---|---|
BogoPerf()
|
Method Summary | |
---|---|
static void |
assertDuration(double currentDuration,
long referenceDuration,
double referenceBIPS)
Assertion used for values that decrease with faster CPUs, typically the time (duration) needed to perform a task. |
static void |
assertPerformance(double currentPerformance,
long referencePerformance,
double referenceBIPS)
Assertion used for values that increase with faster CPUs, typically the number of operations accomplished per unit of time. |
static double |
currentBIPS()
Computed the BogoIPS for this host CPU. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BogoPerf()
Method Detail |
---|
public static double currentBIPS()
public static void assertDuration(double currentDuration, long referenceDuration, double referenceBIPS) throws junit.framework.AssertionFailedError
currentDuration
- referenceDuration
- referenceBIPS
-
junit.framework.AssertionFailedError
public static void assertPerformance(double currentPerformance, long referencePerformance, double referenceBIPS) throws junit.framework.AssertionFailedError
currentPerformance
- referencePerformance
- referenceBIPS
-
junit.framework.AssertionFailedError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |