Constructor and Description |
---|
BogoPerf() |
Modifier and Type | Method and Description |
---|---|
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.
|
public BogoPerf()
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
Copyright © 2005–2017 QOS.ch. All rights reserved.