Package org.jfree.chart.demo
Class Performance
java.lang.Object
org.jfree.chart.demo.Performance
public class Performance extends Object
A basic performance test for a couple of common operations.
-
Constructor Summary
Constructors Constructor Description Performance()Default constructor. -
Method Summary
Modifier and Type Method Description voidcreateLines(int count)Creates lines in a loop.voidgetNumber(int count)Repeatedly grabs a value from a Number instance.voidgetValue(int count)Repeatedly grabs a value from a double.static voidmain(String[] args)Starting point for the application.voidsetLines(int count)Creates one line, then repeatedly calls the setLine method.voidwriteTime(String text, Date time)Writes the current time to the console.
-
Constructor Details
-
Performance
public Performance()Default constructor.
-
-
Method Details
-
createLines
public void createLines(int count)Creates lines in a loop.- Parameters:
count- the number of lines to create.
-
setLines
public void setLines(int count)Creates one line, then repeatedly calls the setLine method.- Parameters:
count- the number of times to call the setLine method.
-
getNumber
public void getNumber(int count)Repeatedly grabs a value from a Number instance.- Parameters:
count- the number of times to call doubleValue().
-
getValue
public void getValue(int count)Repeatedly grabs a value from a double.- Parameters:
count- the number of times to fetch the value.
-
writeTime
Writes the current time to the console.- Parameters:
text- the prefix.time- the time.
-
main
Starting point for the application.- Parameters:
args- ignored.
-