Generation of list of benchmarks from IntelliJ IDEA
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Jan 12 21:06:01 UTC 2015
On 01/12/2015 11:23 PM, Evgeny Mandrikov wrote:
> I've tried latest changeset, which includes your changes and
> unfortunately face the same issue. So probably our testing scenarios are
> different?
Are you sure you have picked up the changes? You should be using the
self-built JMH, set the dependency version for both jmh-core and
jmh-generator-annprocess to 1.5-SNAPSHOT, *and* instruct IDEA to
re-import the Maven project to pick up the new dependencies.
I have just checked this scenario works:
a) Generate the benchmark from archetype.
b) Open the benchmark in IDEA.
c) Put the psvm main() in MyBenchmark.java with JMH API invocation.
d) Run MyBenchmark.main(), works.
e) Create new class in Other.java, save.
f) Run MyBenchmark.main() again, the run fails with "no benchmarks".
g) Go to pom.xml and change jmh.version to 1.5-SNAPSHOT
h) Make IDEA to re-import the project.
i) Build->Rebuild Project
j) Run MyBenchmark.main(), works.
k) Add Other.m(), save.
l) Run MyBenchmark.main() again, works!
Repeat steps (k)-(l) or similar, still works.
Thanks,
-Aleksey.
More information about the jmh-dev
mailing list