Average time computation just prints out "10??"

Bernd Eckenfels ecki at zusammenkunft.net
Sat Sep 29 23:57:05 UTC 2018


I think on Windows the encoding depends on the non-Unicode setting which controls then OEM codepage. JMH tries to read that from the console class, maybe you use a modular Java where this does not work? Or maybe it’s a cygwin Problem, not sure. You can try to set -Dfile.encoding=utf-8

Gruss
Bernd
--
http://bernd.eckenfels.net

________________________________
Von: David Karr <davidmichaelkarr at gmail.com>
Gesendet: Sonntag, September 30, 2018 1:13 AM
An: ecki at zusammenkunft.net
Betreff: Re: Average time computation just prints out "10??"

On Sat, Sep 29, 2018 at 1:59 PM Bernd Eckenfels <ecki at zusammenkunft.net<mailto:ecki at zusammenkunft.net>> wrote:
On reasonalbe current and complete Linux it should work with

LANG=“en_US.UTF8“ Java -jar target/microbenchmarks.jar

Unfortunately, my desktop is Windows 7.  I do run with Cygwin, however.  Unfortunately, this command line makes no difference.  Same result.


Greetings
Bernd
--
http://bernd.eckenfels.net

Von: David Karr<mailto:davidmichaelkarr at gmail.com>
Gesendet: Samstag, 29. September 2018 20:37
An: ecki at zusammenkunft.net<mailto:ecki at zusammenkunft.net>
Betreff: Re: Average time computation just prints out "10??"


On Sat, Sep 29, 2018 at 11:28 AM Bernd Eckenfels <ecki at zusammenkunft.net<mailto:ecki at zusammenkunft.net>> wrote:
It does use unicode characters (mu and plusminus), you need to make sure your console encoding which is reflected in the platform encoding actually supports this.

Yeah, that appears to be the key.  I have no idea how to do that.


Besides that can you show some samples, the unit annotation works in my experience for the aggregate tables at the end of the run.

There are no surprises here.
---------------
Benchmark                                        Mode  Cnt   Score    Error  Units
MyBenchmark.stuff1  avgt   25  ? 10??            s/op
MyBenchmark.stuff2  avgt   25  ? 10??            s/op
--------------------

Gruss
Bernd

Gruss
Bernd
--
http://bernd.eckenfels.net


Von: -2083622320m Auftrag von
Gesendet: Samstag, September 29, 2018 6:21 PM
An: jmh-dev at openjdk.java.net<mailto:jmh-dev at openjdk.java.net>
Betreff: Average time computation just prints out "10??"

I was able to get throughput numbers for benchmarks, but now I want to see
average times for them. They are pretty short blocks, so it would be nice
if I could get them rendered in microseconds, but I don't see an obvious
way to do that.

However, even before trying to configure the units, I'm trying to
understand the output I'm getting. The results I get all say "10?? s/op".
I thought perhaps this was trying to render unicode, but when I stored the
output in a file and inspected it, I saw that those really are "?"
characters.

What can I do about this?



More information about the jmh-dev mailing list