Perforce JViews Gantt Sample: Benchmarking Gantt Charts
Description
This sample shows the performance of the Gantt and Schedule charts.
How to Use the Sample
- Press the Run button to create the chart with the default choices.
- Look at the performance results. The right part of the window shows the measured times of the different steps of the chart creation and display.
-
Select other:
- Ways to create the data
- Chart sizes
- Renderers
- You can click the Run button several times: you may notice that the creation time will decrease. This is due to the Java VM just-in-time compiler optimizing more and more code.
- Use the Help menu item for more explanation.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
a JAR file gantt-bench.jar
.
Do not double-click on this JAR file to start the demo, because it
needs extra arguments passed to the Java virtual machine.
Instead, you
can run the sample application from the command line.
First check that the Ant utility is properly configured. If not, see the
instructions on how to configure Ant for Perforce JViews.
Then, go to the installation directory
of the sample and type:
ant run
Topics Covered
- Performance of the Gantt chart component.
Detailed Description
This sample shows the performance of the Gantt chart component when
Gantt charts or Schedule charts of various sizes and that use various
graphic features are created or displayed.
Before creating your charts you can control the following parameters:
- How the data model is created (in-memory or read from an XML file).
- The number of objects created in the data model.
- The initial objects for the data model.
- When the data model is attached to the component.
- The renderers used for the graphic objects.
Installation Directory
The Benchmarking Gantt Charts sample is installed here.
Source Files
-
bench.GanttBenchExample
The main class of the sample.