JMH for Java IO benchmarking?

ecki at zusammenkunft.net ecki at zusammenkunft.net
Fri Jul 15 19:14:49 UTC 2016


You can use JMH to execute repitetive operations with some control over parallelity. I did that myself. However if you want to do stuff with pending operations, mixed workloads, reactive tests JMH might not be the best option. But it really depends on the complexity of the tests. It does give you quite a lot of infrastructure to start with.

Bernd

-- 
http://bernd.eckenfels.net

-----Original Message-----
From: Behrooz Nobakht <nobeh5 at gmail.com>
To: Henri Tremblay <henri.tremblay at gmail.com>
Cc: "jmh-dev at openjdk.java.net" <jmh-dev at openjdk.java.net>
Sent: Fr., 15 Juli 2016 20:55
Subject: Re: JMH for Java IO benchmarking?

You're right. Maybe I should have been more clear.
I really want to measure/benchmark JVM's performance
when doing IO operations read/write.

On Fri, Jul 15, 2016 at 8:03 PM, Henri Tremblay <henri.tremblay at gmail.com>
wrote:

> If you want to test raw disk speed (not a Java implementation) I would use
> operating system tools.
>
> On linux:
> - hdparm
> - dd
> - bonnie++
>
>
> On 15 July 2016 at 12:24, Behrooz Nobakht <nobeh5 at gmail.com> wrote:
>
>> Hi,
>>
>> I am looking for tests/libraries/frameworks to measure IO performance
>> (essentially read/write)
>> using different storage; e.g. local disk, NFS and etc.
>>
>> Although feels not like it, but can I use JMH for such purpose? If so, any
>> examples?
>> And, if not, do you happen to know such a tool/library/tool?
>>
>> Thanks,
>> Behrooz
>>>>
>
>


-- 
-- Behrooz Nobakht


More information about the jmh-dev mailing list