On Thu, 14 Mar 2024 15:42:46 GMT, Alexander Zuev <kiz...@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