From sergei.tsypanov at yandex.ru Mon Mar 12 16:23:04 2018 From: sergei.tsypanov at yandex.ru (=?utf-8?B?0KHQtdGA0LPQtdC5INCm0YvQv9Cw0L3QvtCy?=) Date: Mon, 12 Mar 2018 18:23:04 +0200 Subject: error when using perfasm Message-ID: <1177261520871784@web8j.yandex.ru> Hi everyone, I face an error when trying to use perfasm profiler under Windows: > java -jar target\benchmarks.jar com.luxoft.logeek.benchmark.array.IndexOfBenchmark -w 10 -i 10 -f 3 -prof xperfasm # Preparing profilers: WinPerfAsmProfiler Exception in thread "main" java.lang.IllegalStateException: Failed to start xperf: [xperf: error: NT Kernel Logger: ?????????? ??????? ????, ??? ??? ?? ??? ??????????. (0xb7).] at org.openjdk.jmh.profile.WinPerfAsmProfiler.beforeTrial(WinPerfAsmProfiler.java:129) at org.openjdk.jmh.runner.Runner.runSeparate(Runner.java:648) at org.openjdk.jmh.runner.Runner.runBenchmarks(Runner.java:560) at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:320) at org.openjdk.jmh.runner.Runner.run(Runner.java:209) at org.openjdk.jmh.Main.main(Main.java:71) The message is "File cannot be created as it alredy exitsts". The problem is that I have no idea which file is needed to be created. Did anyone face the same issue? Sergey Tsypanov From dbundin at iponweb.net Mon Mar 12 16:46:33 2018 From: dbundin at iponweb.net (Dmitry Bundin) Date: Mon, 12 Mar 2018 19:46:33 +0300 Subject: Perfasm assembly output threshold Message-ID: Hello! I have a problem with printing assembly code for my benchmarks. Here is it: java -jar target/benchmarks.jar -wi 10 -i 10 -f 25 -prof perfasm prints the following: 20 ....[Hottest Region 1].............................................................................. 19 C2, level 4, com.zto.logic.Operator::call, version 693 (1906 bytes) 18 17 Is there a way to change the threshold? From shade at redhat.com Tue Mar 13 09:13:28 2018 From: shade at redhat.com (Aleksey Shipilev) Date: Tue, 13 Mar 2018 10:13:28 +0100 Subject: Perfasm assembly output threshold In-Reply-To: References: Message-ID: <9bd89eee-6ab7-9eab-22ce-691bc8a8438e@redhat.com> On 03/12/2018 05:46 PM, Dmitry Bundin wrote: > Hello! > > I have a problem with printing assembly code for my benchmarks. Here is it: > > java -jar target/benchmarks.jar -wi 10 -i 10 -f 25 -prof perfasm > > prints the following: > > 20 ....[Hottest Region > 1].............................................................................. > 19 C2, level 4, com.zto.logic.Operator::call, version 693 (1906 bytes) > 18 > 17 > > > Is there a way to change the threshold? Try -prof perfasm:help, and see the options. This is probably "tooBigThreshold". -Aleksey From alex.averbuch at neo4j.com Thu Mar 29 08:56:02 2018 From: alex.averbuch at neo4j.com (Alex Averbuch) Date: Thu, 29 Mar 2018 08:56:02 +0000 Subject: [PATCH]: override a parameter value, constrained to a specific class In-Reply-To: References: Message-ID: My OCA has now been approved. Besides this email, is there anything I need to do to find someone review my patch? Cheers, Alex On Wed, Feb 7, 2018 at 1:25 PM Alex Averbuch wrote: > An alternative to the provided patch is to 'name' to @param, which > defaults to the class member name but can be overridden to, for example, > the class member name prefixed by the fully qualified name of its > containing class. > > E.g., > > @Inherited > @Target({ElementType.FIELD}) > @Retention(RetentionPolicy.RUNTIME) > public @interface Param { > > String BLANK_ARGS = "blank_blank_blank_2014"; > > /** @return field name */ > String name() default BLANK_ARGS; > > /** > * Default values sequence for the parameter. By default, the parameter > * values will be traversed during the run in the given order. > * > * @return values sequence to follow. > */ > String[] value() default { BLANK_ARGS }; > } > > > On Wed, Feb 7, 2018 at 11:13 AM, Alex Averbuch > wrote: > >> Hi, >> I'd like to submit a patch to JMH, is the mailing list a valid place to >> that? >> The change makes it possible to override a parameter value, but that >> override only affects the value of a @param in a specific benchmark class >> -- i.e., one level is added to the @param namespace. >> This is useful when you have the combination of: >> >> - JMH project with many benchmark classes >> - Multiple benchmark classes have @param fields with the same name >> - @param values are set via the Java builder (or CLI interface) >> >> Feedback welcome! >> Cheers, >> Alex >> > > From alex.averbuch at neo4j.com Thu Mar 29 08:56:02 2018 From: alex.averbuch at neo4j.com (Alex Averbuch) Date: Thu, 29 Mar 2018 08:56:02 +0000 Subject: [PATCH]: override a parameter value, constrained to a specific class In-Reply-To: References: Message-ID: My OCA has now been approved. Besides this email, is there anything I need to do to find someone review my patch? Cheers, Alex On Wed, Feb 7, 2018 at 1:25 PM Alex Averbuch wrote: > An alternative to the provided patch is to 'name' to @param, which > defaults to the class member name but can be overridden to, for example, > the class member name prefixed by the fully qualified name of its > containing class. > E.g., > @Inherited > @Target({ElementType.FIELD}) > @Retention(RetentionPolicy.RUNTIME) > public @interface Param { > String BLANK_ARGS = "blank_blank_blank_2014"; > /** @return field name */ > String name() default BLANK_ARGS; > /** > * Default values sequence for the parameter. By default, the > parameter > * values will be traversed during the run in the given order. > * > * @return values sequence to follow. > */ > String[] value() default { BLANK_ARGS }; > } > On Wed, Feb 7, 2018 at 11:13 AM, Alex Averbuch > wrote: >> Hi, >> I'd like to submit a patch to JMH, is the mailing list a valid place to >> that? >> The change makes it possible to override a parameter value, but that >> override only affects the value of a @param in a specific benchmark class >> -- i.e., one level is added to the @param namespace. >> This is useful when you have the combination of: >> - JMH project with many benchmark classes >> - Multiple benchmark classes have @param fields with the same name >> - @param values are set via the Java builder (or CLI interface) >> Feedback welcome! >> Cheers, >> Alex From brandon.barker at cornell.edu Sat Mar 31 02:58:01 2018 From: brandon.barker at cornell.edu (Brandon Barker) Date: Fri, 30 Mar 2018 22:58:01 -0400 Subject: How does one use JMH from a Scala Maven project in a JUnit test? Message-ID: Hi All, I've been having a devil of a time trying to do this. Rather than repost the entire question details here, I'll summarize with: 1. SO question at: https://stackoverflow.com/questions/49583717/how-does-one-use-jmh-from-a-scala-maven-project-in-a-junit-test 2. Demo problem project in question: https://github.com/bbarker/scala-maven-jmh-bench-demo/tree/89481477d6d051c038eabbb16ce6c14212844b8d At this point,I assume it might either require a heroic trick, can not be done without changes to JMH, or maybe I'm just missing something really simple with maven (but I don't think so). Thanks for having a look. -- Brandon E. Barker http://www.cac.cornell.edu/barker/ From liliyou at vip.qq.com Sat Mar 31 08:05:15 2018 From: liliyou at vip.qq.com (=?gb18030?B?aGpq?=) Date: Sat, 31 Mar 2018 16:05:15 +0800 Subject: how to custom my own result report? Message-ID: When i get the jmh json result file, I want to record some business data for the longest AverageTime time in the json file, how can i achieve this requirement?like testNg?i can write my own customized reporter, thank you very much!