src/share/demo/java2d/J2DBench/README

Print this page

        

*** 17,30 **** ----------------------------------------------------------------------- Minimum requirements ----------------------------------------------------------------------- ! The benchmark requires at least jdk1.4 to compile and ! at least jdk1.2** to run. ! ! ** Note: the goal is to make the benchmark run on 1.1.x as well. ----------------------------------------------------------------------- How To Compile ----------------------------------------------------------------------- --- 17,27 ---- ----------------------------------------------------------------------- Minimum requirements ----------------------------------------------------------------------- ! The benchmark requires at least jdk1.5 to compile and run. ----------------------------------------------------------------------- How To Compile -----------------------------------------------------------------------
*** 123,150 **** extremely long time to execute the tests, so be be careful when choosing the options and benchmarks to run. After the options file is created, start J2DBench in batch mode to run the benchmarks for the default pipeline: ! #> java -jar dest/J2DBench.jar -batch -loadopts options/default.opt \ -saveres default.res -title "Rendering - Default ppl" \ -desc "Rendering tests with the default pipeline" This command will run the benchmarks defined in options/default.opt file and save the result in default.res file. (You can also run selected tests directly from the GUI mode by hitting "Run Tests" in the J2DBench dialog) Now run the benchmark with opengl pipeline: ! #> java -Dsun.java2d.opengl=True -jar dest/J2DBench.jar -batch \ -loadopts options/default.opt \ -saveres opengl.res -title "Rendering - OpenGL" \ -desc "Rendering tests with OpenGL pipeline" Now let's analyze the results using J2DAnalyzer: ! #> java -jar dest/J2DAnalyzer.jar default.res opengl.res Note that you can compare more than two sets of results, see J2DAnalyzer's help page. You can also generate html pages from the results files using --- 120,147 ---- extremely long time to execute the tests, so be be careful when choosing the options and benchmarks to run. After the options file is created, start J2DBench in batch mode to run the benchmarks for the default pipeline: ! #> java -jar dist/J2DBench.jar -batch -loadopts options/default.opt \ -saveres default.res -title "Rendering - Default ppl" \ -desc "Rendering tests with the default pipeline" This command will run the benchmarks defined in options/default.opt file and save the result in default.res file. (You can also run selected tests directly from the GUI mode by hitting "Run Tests" in the J2DBench dialog) Now run the benchmark with opengl pipeline: ! #> java -Dsun.java2d.opengl=True -jar dist/J2DBench.jar -batch \ -loadopts options/default.opt \ -saveres opengl.res -title "Rendering - OpenGL" \ -desc "Rendering tests with OpenGL pipeline" Now let's analyze the results using J2DAnalyzer: ! #> java -jar dist/J2DAnalyzer.jar default.res opengl.res Note that you can compare more than two sets of results, see J2DAnalyzer's help page. You can also generate html pages from the results files using