Multiple pieces are changing across these releases.

Is it the JPEG writing ? Is it freetype vs t2k (font performance)
is it harfbuzz vs icu (text layout), is it marlin vs ductus (rasterization) ?

So it is very hard to say with any certainty what the cause of the difference is .. or
why 10 got so much better than 9  .. even if still not back to JDK 8.

Please file a bug at java.com.

-phil.

On 09/25/2018 10:42 PM, Daniel Persson wrote:
Hi everyone,

We render a lot of images with PDFBox with Java 1.8.0 and we want to upgrade to the current OpenJDK 11 but sadly we see some performance degradation switching over to OpenJDK. Anyone have a suggestion to remedy this issue, or can explain why it is slower?

Using the PDFBox app current release downloadable from
http://www-us.apache.org/dist/pdfbox/2.0.11/pdfbox-app-2.0.11.jar

Running the command
java -jar pdfbox-app-2.0.11.jar PDFToImage -time test.pdf

We see the following result

---------------------------------------------------------
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
Rendered 1 page in 2762ms
---------------------------------------------------------
openjdk version "9.0.4"
OpenJDK Runtime Environment (build 9.0.4+11)
OpenJDK 64-Bit Server VM (build 9.0.4+11, mixed mode)
Rendered 1 page in 8034ms
---------------------------------------------------------
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment 18.3 (build 10.0.2+13)
OpenJDK 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
Rendered 1 page in 4255ms
---------------------------------------------------------
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
Rendered 1 page in 4275ms
---------------------------------------------------------
openjdk version "12-ea" 2019-03-19
OpenJDK Runtime Environment 19.3 (build 12-ea+11)
OpenJDK 64-Bit Server VM 19.3 (build 12-ea+11, mixed mode)
Rendered 1 page in 4399ms

The pdf file used in this example can be downloaded from
https://drive.google.com/file/d/139wP6PDmmQ6KBTyeJTETIrplSuOUgFfG/view?usp=sharing

Best regards
Daniel

Reply via email to