C H A P T E R 10 |
Writing Benchmark Test Packages |
This chapter describes how to create a benchmark tests. It contains these sections:
FIGURE 10-1 shows files in a directory that correspond to a benchmark test package. It is identical to a runtime test directory.
FIGURE 10-1 Benchmark Test Directory Contents
Java Device Test Suite has two types of benchmark tests:
A system load test extends ComprehensiveBenchmarkTest, a class documented in devKitHome/docs/testapi/testapi/index.html. For a sample system load test, see devKitHome/tests/benchmark/src/client/com/sun/samples/benchmark/testsystemload/MediaPlayerTest.java.
For realistic system load example, see installDir/admin/shared/testpacks/Benchmark_TestSuite/src/client/com/sun/benchmark/scenarios/mediaPlayer/MediaPlayerTest.java.
A unit rate test extends ComprehensiveBenchmarkTest, a class that is documented in devKitHome/docs/testapi/testapi/index.html. For a sample unit rate test, see devKitHome/tests/benchmark/src/client/com/sun/samples/benchmark/testUnitRate/GraphicsTest.java.
For realistic unit rate examples, see the directories in installDir/admin/shared/testpacks/Benchmark_TestSuite/src/client/com/sun/benchmark/scenarios/.
However, ignore the mediaPlayer directory because it contains a system load test.