|
41 | 41 | <property name="test.profiler.opts.default" value="event=cpu;threads=true;output=flamegraph;simple=true;ann=true"/> |
42 | 42 | <property name="test.profiler.output" value="${build.test.dir}/profiler"/> |
43 | 43 |
|
44 | | - <target name="-microbench"> |
| 44 | + <target name="microbench" depends="maybe-build-test"> |
45 | 45 | <jmh/> |
46 | 46 | </target> |
47 | 47 |
|
48 | | - <target name="-microbench-with-profiler" depends="-fetch-async-profiler"> |
| 48 | + <target name="microbench-test" depends="maybe-build-test" description="test each microbench runs once"> |
| 49 | + <!-- Only used to test jmh classes run without error. Not to be used for actual performance tests --> |
| 50 | + <jmh> |
| 51 | + <extra-args> |
| 52 | + <arg value="-f"/><arg value="1"/> |
| 53 | + <arg value="-wi"/><arg value="0"/> |
| 54 | + <arg value="-i"/><arg value="1"/> |
| 55 | + </extra-args> |
| 56 | + </jmh> |
| 57 | + </target> |
| 58 | + |
| 59 | + <target name="microbench-with-profiler" depends="maybe-build-test,-fetch-async-profiler"> |
49 | 60 | <condition property="test.profiler.opts" value="${test.profiler.opts.default}" else="${profiler.opts}"> |
50 | 61 | <or> |
51 | 62 | <not> |
|
83 | 94 | <jvmarg line="${_std-test-jvmargs}"/> |
84 | 95 | <jvmarg line="${test.jvm.args}"/> |
85 | 96 |
|
| 97 | + <!-- total memory must fit within the pod constraints, see comments in .jenkins/Jenkinsfile and dind's container resourceRequestMemory in .jenkins/k8s/jenkins-deployment.yaml --> |
| 98 | + <!-- note! this is used for both the JMH runner and VMH fork --> |
| 99 | + <jvmarg value="-Xmx1G"/> |
| 100 | + |
86 | 101 | <arg value="-foe"/> |
87 | 102 | <arg value="true"/> |
88 | 103 | <arg value="-rf"/> |
|
97 | 112 | <extra-args/> |
98 | 113 |
|
99 | 114 | <!-- TODO https://issues.apache.org/jira/browse/CASSANDRA-18873 --> |
| 115 | + <!-- The classes listed below are broken, and so currently ignored, see CASSANDRA-18873 --> |
100 | 116 | <arg value="-e" if:blank="${benchmark.name}"/> |
101 | | - <arg value="ZeroCopyStreamingBench|MutationBench|FastThreadLocalBench" if:blank="${benchmark.name}"/> |
| 117 | + <arg value="AtomicBTreePartitionUpdateBench|BTreeSearchIteratorBench|BTreeTransformBench|BTreeUpdateBench|FastThreadLocalBench|KeyLookupBench|MutationBench|(instance.*Bench)|ReadWriteBench|ZeroCopyStreamingBench" if:blank="${benchmark.name}"/> |
102 | 118 |
|
103 | 119 | <arg value=".*microbench.*${benchmark.name}"/> |
104 | 120 | </java> |
|
0 commit comments