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
    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​(String[] args)
    Starting point for the application.
    void setLines​(int count)
    Creates one line, then repeatedly calls the setLine method.
    void writeTime​(String text, Date time)
    Writes the current time to the console.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void writeTime​(String text, Date time)
      Writes the current time to the console.
      Parameters:
      text - the prefix.
      time - the time.
    • main

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