if you take a look at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater
and set the log level to fine (e.g in the constructor): LOGGER.setLevel(Level.FINE); you should see the following in the log: first test case: INFO: Complete indexing of 69 binary roots took: 5,335 ms ... subsequent test cases: INFO: Complete indexing of 69 binary roots took: 258 ms since it is already in the cache somewhere most likely. best regards, michael On 4/2/25 15:27, Michael Bien wrote: > Hi, > > what usually happens in refactoring tests like this is that the test cases > wait until > the code scan finishes after the source code is written before the > refactoring can start. > > This takes more time for the first test case, since some state is shared > between the tests. > If you remove the first test case on your list and run again you should see > that the next > in the list will be the one taking several seconds longer. > > (I don't see the image you posted, but I quickly ran the test and checked) > > -mbien > > > On 4/2/25 15:01, Pieter van den Hombergh wrote: >> Dear mailing list, >> While trying to resolve some issues with Java refactoring, I noticed that >> the tests take a long time to run. >> >> On a freshly built dev version, running test >> .../java/refactoring.java/test/unit/src/org/netbeans/modules/refactoring/java/test/RenameRecordTest.java >> >> I get this: >> >> image.png >> Running it multiple times after each other gives the same result. >> Notice the first line, (18.9 seconds) the first test takes a long time, as >> if something is introducing some waiting time. >> This experience is consistent with all other test in the same test-package; >> all tests wait long on the first test. >> This is incredibly annoying when running only one test. >> >> During the wait, I had enough time to look at the CPU activity, which >> appeared idle on all threads most of the time. >> There is one peak at the beginning of the test run on one or two cores, and >> more activity at the end. >> In the time between, my machine appears idle. >> >> Characteristics of my environment: >> >> * Ubuntu 24.04 running XFCE >> * CPU Packages: >> 0: AMD Ryzen 9 3900X >> Microarchitectures: >> 24x Zen 2 >> * java 17 (as required to build netbeans) >> * netbeans dev, fresh pull and build. >> >> Could you please advise me on my setup? >> >> Met vriendelijke groet, >> Pieter van den Hombergh. >> Kerboschstraat 12 >> 5913 WH Venlo > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists