Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java jmh没有匹配的基准。拼写为regexp的小姐?将-v用于详细输出。_Java_Jmh - Fatal编程技术网

Java jmh没有匹配的基准。拼写为regexp的小姐?将-v用于详细输出。

Java jmh没有匹配的基准。拼写为regexp的小姐?将-v用于详细输出。,java,jmh,Java,Jmh,为了理解JMH,我正在实现示例应用程序。我在运行它时遇到了问题。我发现了这个错误 No matching benchmarks. Miss-spelled regexp? Use -v for verbose output. 这是我的密码 public class TestJMS { @GenerateMicroBenchmark public void wellHelloThere() { } public static void main(Strin

为了理解JMH,我正在实现示例应用程序。我在运行它时遇到了问题。我发现了这个错误

No matching benchmarks. Miss-spelled regexp? Use -v for verbose output. 
这是我的密码

public class TestJMS {



   @GenerateMicroBenchmark
   public void wellHelloThere() {

   }



   public static void main(String[] args) throws RunnerException {
       Options opt = new OptionsBuilder()
               .include(".*" + TestJMS.class.getSimpleName() + ".*")
               .forks(1)
               .build();

       new Runner(opt).run();
   }

}

我发现很多帖子都与这个问题有关,但没有明确的答案。请简单地解释一下

您是否使用annotation processor实际生成基准测试?请按照JMH页面上的说明,使用Maven构建基准测试uberjar-忘掉main方法。