Caideyipi opened a new pull request, #18685: URL: https://github.com/apache/iotdb/pull/18685
## Description Adds an opt-in microbenchmark for the compiled non-trivial wildcard cache introduced by #18672. - Reproduces the pre-change compile-on-every-match path. - Compares it with `PathPatternNode.getMatchChildren`, alternating execution order by round. - Checks that both paths return the same number of matches. - Reports median latency, throughput, speedup, and latency reduction for configurable wildcard counts. - Stays skipped in normal UT runs unless `-Diotdb.path.pattern.node.perf.enabled=true` is set. Example: ```bash mvn -pl iotdb-core/node-commons -Dtest=PathPatternNodePerformanceTest -Diotdb.path.pattern.node.perf.enabled=true test ``` The workload can be tuned with the `iotdb.path.pattern.node.perf.*` system properties documented by the test skip message. ## Testing - `mvn spotless:apply -pl iotdb-core/node-commons` ? passed - Checkstyle and Spotless checks during the targeted Maven run ? passed - The targeted local Maven run could not reach test execution because the current checkout has unrelated missing `OPC_UA_CONNECTOR` and `OPC_UA_SINK` symbols in `BuiltinPipePlugin`; remote CI is expected to run the test compilation. <hr> This PR has: - [x] been self-reviewed. - [x] added comments explaining the benchmark intent. - [x] kept the performance test disabled during regular unit-test runs. <hr> ##### Key changed/added classes - `PathPatternNodePerformanceTest` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
