void () { File tempJar = IoTestUtil.createTestJar(tempDir.newFile("test.jar")); VirtualFile jar = LocalFileSystem.getInstance().findFileByIoFile(tempJar); assertNotNull(jar); JarFileSystem fs = JarFileSystem.getInstance(); String path = jar.getPath() + "!/"; ManagingFS managingFS = ManagingFS.getInstance(); NewVirtualFile root = managingFS.findRoot(path, fs); PlatformTestUtil.startPerformanceTest("finding root", 20_000, () -> JobLauncher.getInstance().invokeConcurrentlyUnderProgress( Collections.nCopies(500, null), null, __ -> { for (int i = 0; i < 100_000; i++) { NewVirtualFile rootJar = managingFS.findRoot(path, fs); assertNotNull(rootJar); assertSame(root, rootJar); } return true; })).usesAllCPUCores().assertTiming(); }