2016-01-17 2 views

Répondre

8

Après la documentation ici http://openjdk.java.net/projects/code-tools/jmh/

Le premier exemple a

@Benchmark 
public void wellHelloThere() { 
    // this method was intentionally left blank. 
} 

Il apparaît l'annotation que vous mentionnez a été renommé il y a 2-3 ans.

+1

Il semble qu'il y ait beaucoup de tutoriels périmés. Les exemples sont cachés à la fin de la page que vous avez mentionnée – jah