DataBuffer, ColorModels and SampleModels

Roman Kennke roman at kennke.org
Sun May 13 21:07:09 UTC 2007


Hi there,

>    that's pretty impressive!

Yeah, and the performance is even more impressive. I've done a small
test which converts 1000000 pixels from GRAY to sRGB. This is the
performance with the plain OpenJDK (littlecms I suppose? Or even the old
Kodak code.):

roman at moonlight:~/src/test$
~/src/openjdk/control/build/linux-i586/bin/java ColorTest
converion time for 1000000 pixels: 13050


roman at moonlight:~/src/test$
~/src/openjdk/control/build/linux-i586/bin/java ColorTest
converion time for 1000000 pixels: 406


Find the test attached (It's derived from the gray->srgb testcase that I
found in on of the bugreports). I know it's very simplistic and such,
but it gives a clue about the performance difference. I suppose it's the
100% Java approach that makes the difference here. Calling some JNI
function 1000000 times is much worse than doing all this in Java I
suppose.

I would really like to run (or have one of you run) this against a
conformance testsuite and see how it performs there.

AFAIK, Sun and the FSF are talking about how to make code flowing
between GNU Classpath and OpenJDK easy/easier.

/Roman

-- 
http://kennke.org/blog/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ColorTest.java
Type: text/x-java
Size: 925 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20070513/c58864bf/ColorTest.java>


More information about the 2d-dev mailing list