RFE: record VM and JMH version into the JSON results, maybe add Runtime.getRuntime().availableProcessors()

Aleksey Shipilev shade at redhat.com
Thu Mar 23 10:17:02 UTC 2017


On 03/23/2017 11:06 AM, Jens Wilke wrote:
> On Donnerstag, 23. März 2017 16:54:23 ICT Aleksey Shipilev wrote:
>> Runtime.getRuntime().availableProcessors()
>>
>> Note that is different from the actual number of CPUs configured, especially 
> on
>> embedded platforms. Look around how JMH figures out the number of "hot" CPUs.
> 
> Can you give some pointers?

http://hg.openjdk.java.net/code-tools/jmh/file/704bfc869f77/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java#l188

>> Sure, that makes sense. JSON output is the dumping ground anyway. 
> 
> The only thing that bothers me is that it needs to be repeated per result 
> since the top level structure is an array. If it happens and the format will 
> be reconsidered hopefully it gets a struct containing version and results....

Alas.

-Aleksey



More information about the jmh-dev mailing list