RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main

Tejesh R tr at openjdk.org
Thu Mar 14 16:07:42 UTC 2024


On Thu, 14 Mar 2024 15:42:46 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> Convert  sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message.
>
> test/jdk/sun/java2d/loops/CopyAreaSpeed.java line 131:
> 
>> 129:             }
>> 130:             try {
>> 131:                 Thread.sleep(1);
> 
> I know it is an old code but i just wonder why do we add sleep to every iteration of something that is supposed to be a performance test. What are we achieving by doing this sleep?

Maybe because of Graphics paint and copyArea ?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18296#discussion_r1525138504


More information about the client-libs-dev mailing list