Re: Benchmarks for NIO buffer performance

2011-11-02 Thread David Holmes

On 2/11/2011 3:27 PM, Iris Clark wrote:

Hi, Mark.

You gave me a copy of those test when I was working on this bug:

4463011: (bf) View-buffer bulk get/put operations are slow

If I recall correctly, I modified the tests for my particular problem
and added them to that bug as attachments.


Thanks Iris. The four tests you refer to exercise a number of the 
Direct*Buffer* classes. Is there anything similar for the Heap*Buffer* 
and ByteBufferAs*Buffer classes? :)


David


iris

-Original Message-
From: Mark Reinhold
Sent: Tuesday, November 01, 2011 8:48 PM
To: David Holmes
Cc: nio-disc...@openjdk.java.net; core-libs-dev@openjdk.java.net
Subject: Re: Benchmarks for NIO buffer performance

2011/11/1 17:07 -0700, david.hol...@oracle.com:

I'm looking into refactoring all the generated buffer classes to reduce the
number of classes created. Part of that requires a performance comparison
between the old and new classes. So I'm looking for any benchmarks that may
exist to measure NIO buffer performance. There would have undoubtedly been such
benchmarks back when NIO was first developed, but they seem to have been lost -
unless someone on these lists know of them. ;-)


You're correct -- we did write buffer benchmarks at the time, way back in
2000/2001.  I'm sure I have them somewhere in my archive; I'll try to dig
them out for you soon.

- Mark


RE: Benchmarks for NIO buffer performance

2011-11-01 Thread Iris Clark
Hi, Mark.

You gave me a copy of those test when I was working on this bug:

4463011: (bf) View-buffer bulk get/put operations are slow

If I recall correctly, I modified the tests for my particular problem
and added them to that bug as attachments.

iris

-Original Message-
From: Mark Reinhold 
Sent: Tuesday, November 01, 2011 8:48 PM
To: David Holmes
Cc: nio-disc...@openjdk.java.net; core-libs-dev@openjdk.java.net
Subject: Re: Benchmarks for NIO buffer performance

2011/11/1 17:07 -0700, david.hol...@oracle.com:
> I'm looking into refactoring all the generated buffer classes to reduce the
> number of classes created. Part of that requires a performance comparison
> between the old and new classes. So I'm looking for any benchmarks that may
> exist to measure NIO buffer performance. There would have undoubtedly been 
> such
> benchmarks back when NIO was first developed, but they seem to have been lost 
> -
> unless someone on these lists know of them. ;-)

You're correct -- we did write buffer benchmarks at the time, way back in
2000/2001.  I'm sure I have them somewhere in my archive; I'll try to dig
them out for you soon.

- Mark


Re: Benchmarks for NIO buffer performance

2011-11-01 Thread mark . reinhold
2011/11/1 17:07 -0700, david.hol...@oracle.com:
> I'm looking into refactoring all the generated buffer classes to reduce the
> number of classes created. Part of that requires a performance comparison
> between the old and new classes. So I'm looking for any benchmarks that may
> exist to measure NIO buffer performance. There would have undoubtedly been 
> such
> benchmarks back when NIO was first developed, but they seem to have been lost 
> -
> unless someone on these lists know of them. ;-)

You're correct -- we did write buffer benchmarks at the time, way back in
2000/2001.  I'm sure I have them somewhere in my archive; I'll try to dig
them out for you soon.

- Mark