com.jrefinery.chart.demo
Class Performance

java.lang.Object
  |
  +--com.jrefinery.chart.demo.Performance

public class Performance
extends java.lang.Object

A basic performance test for a couple of common operations.

Author:
DG

Constructor Summary
Performance()
          Default constructor.
 
Method Summary
 void createLines(int count)
          Creates lines in a loop.
 void getNumber(int count)
          Repeatedly grabs a value from a Number instance.
 void getValue(int count)
          Repeatedly grabs a value from a double.
static void main(java.lang.String[] args)
          Starting point for the application.
 void setLines(int count)
          Creates one line, then repeatedly calls the setLine method.
 void writeTime(java.lang.String text, java.util.Date time)
          Writes the current time to the console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Performance

public Performance()
Default constructor.
Method Detail

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

public void writeTime(java.lang.String text,
                      java.util.Date time)
Writes the current time to the console.
Parameters:
text - the prefix.
time - the time.

main

public static void main(java.lang.String[] args)
Starting point for the application.
Parameters:
args - ignored.