Running mecirobenchmarks from IDE
FELIX YANG
felix.yang at oracle.com
Mon Jul 7 02:14:12 UTC 2014
Hi Vladimir,
there may be. My workaround :
1. add target/generated-sources/annotations, and target/classes as
source folders.
2. add jar files into libraries, inlcuding commons-math3-3.2. jar,
jmh-core-xx.jar, jmh-core-benchmarks-xx.jar and
jmh-generator-annprocess-xx.jar and jmh-generator-reflection-xx.jar
Then you can run a test (for instance, JMHSample_01_HelloWorld) as usual
Java Application from IDE.
-Felix
On 7/6/2014 7:18 PM, Vladimir Ozerov wrote:
> Hi,
>
> Is it possible to run JMH from IDE without necessity to generate Maven
> artifacts? I.e. with just click "Run"?
>
> I tried to run it using samples with Runner class, and of course it doesn't
> work because it searches for /META-INF/BenchmarkList wihch is absent in my
> project.
> Therefore, it appears that currently there is no user-friendly way for
> instant benchmark run from IDE (e.g. for quick algorithm performance
> assesment). Am I missing something?
>
> Vladimir.
More information about the jmh-dev
mailing list