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:


Benchmark Test Directory Structure

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


Benchmark Test Directory Contents


Benchmark Test Types

Java Device Test Suite has two types of benchmark tests:


Writing a System Load Test

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.


Writing a Unit Rate Test

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.