github-actions[bot] commented on code in PR #61345:
URL: https://github.com/apache/doris/pull/61345#discussion_r3078569207


##########
fe/fe-core/src/test/java/org/apache/doris/nereids/mv/PredicatesBenchmarkTest.java:
##########
@@ -0,0 +1,353 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.nereids.mv;
+
+import org.apache.doris.nereids.CascadesContext;
+import org.apache.doris.nereids.rules.exploration.mv.ComparisonResult;
+import org.apache.doris.nereids.rules.exploration.mv.HyperGraphComparator;
+import org.apache.doris.nereids.rules.exploration.mv.Predicates;
+import 
org.apache.doris.nereids.rules.exploration.mv.Predicates.PredicateCompensation;
+import org.apache.doris.nereids.rules.exploration.mv.StructInfo;
+import org.apache.doris.nereids.rules.exploration.mv.mapping.RelationMapping;
+import org.apache.doris.nereids.rules.exploration.mv.mapping.SlotMapping;
+import org.apache.doris.nereids.sqltest.SqlTestBase;
+import org.apache.doris.nereids.trees.plans.Plan;
+import org.apache.doris.nereids.util.PlanChecker;
+import org.apache.doris.thrift.TUniqueId;
+
+import org.junit.jupiter.api.Assumptions;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.nio.file.StandardOpenOption;
+import java.util.Arrays;
+import java.util.Locale;
+import java.util.UUID;
+
+/**
+ * Manual benchmark for predicate compensation hot paths.
+ * Enable with ENABLE_PREDICATE_BENCHMARK=true when running the test 
explicitly.
+ */
+public class PredicatesBenchmarkTest extends SqlTestBase {
+
+    private static final int HOT_PATH_WARMUP_ITERATIONS = 1000;
+    private static final int HOT_PATH_MEASURE_ITERATIONS = 3000;
+    private static final int HOT_PATH_ROUNDS = 5;
+    private static final int FE_PLAN_WARMUP_ITERATIONS = 10;
+    private static final int FE_PLAN_MEASURE_ITERATIONS = 30;
+    private static final int FE_PLAN_ROUNDS = 5;
+
+    private static final Path BENCHMARK_RESULT_PATH =
+            Paths.get(System.getProperty("java.io.tmpdir"), 
"predicates-benchmark-results.txt");
+
+    private static volatile int benchmarkBlackhole;
+
+    @Override
+    protected void runBeforeAll() throws Exception {

Review Comment:
   `Assumptions.assumeTrue(...)` here only skips the test body. It does not 
skip the class-level `beforeAll` work from `TestWithFeService`, which creates a 
FE cluster and then calls this class's `runBeforeAll()` before JUnit evaluates 
the assumption. That means every normal FE UT run still pays for an extra 
cluster bootstrap plus the DB/table setup in this file, even though the 
benchmark is meant to be manual-only. Please either keep this benchmark out of 
the default `*Test` suite, or move the benchmark gating so the expensive setup 
is skipped too.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to