hot-reload-analysis/src/benchmark/kotlin/org/jetbrains/compose/reload/analysis/ResolveDirtyBenchmark.kt [50:67]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @Setup fun setup() { workingDir = Files.createTempDirectory("hot-reload-analysis-benchmark") Runtime.getRuntime().addShutdownHook(Thread { workingDir.toFile().deleteRecursively() }) val compiler = Compiler(workingDir) fun generateSource(index: Int, stringLiteral: String): String { val logIndex = log2(index.toFloat()).roundToInt() return """ import androidx.compose.runtime.* var staticField$index = $index open class Foo$index${if (logIndex > 0 && logIndex % 2 == 0) ": Foo${logIndex}()" else ""} fun helper$index() = "$stringLiteral: %staticField$index" @Composable fun Widget$index() { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - hot-reload-analysis/src/benchmark/kotlin/org/jetbrains/compose/reload/analysis/RuntimeInstructionTreeParseBenchmark.kt [86:105]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @Setup fun setup() { workingDir = Files.createTempDirectory("hot-reload-analysis-benchmark") Runtime.getRuntime().addShutdownHook(Thread { workingDir.toFile().deleteRecursively() }) val compiler = Compiler(workingDir) fun generateSource(index: Int, stringLiteral: String): String { val logIndex = log2(index.toFloat()).roundToInt() return """ import androidx.compose.runtime.* import androidx.compose.material.Text var staticField$index = $index open class Foo$index${if (logIndex > 0 && logIndex % 2 == 0) ": Foo${logIndex}()" else ""} fun helper$index() = "$stringLiteral: %staticField$index" @Composable fun Widget$index() { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -