Java2d Benchmarking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To finish off this topic, I've also created a benchmarker in native code
using a GTK widget - with some interesting results.  I've included the
detailed results below, but it seems that JNI overhead is doubling the
times for simple java2d operations.

I tested arcs, cubic curves, lines, and rectangles.  Ellipses are
special cases of arcs, and quadratic curves of cubic curves, so I
skipped those.

_Arc_
Native: 478
Classpath: 586
Ratio: 0.82

_Cubic curve_
Native: 612
Classpath: 1105
Ratio: 0.55

_Line_
Native: 108
Classpath: 247
Ratio: 0.44

_Rectangle_
Native: 120
Classpath: 364
Ratio: 0.33

_Arc - Fill_
Native: 314
Classpath: 638
Ratio: 0.49

_Rectangle - Fill_
Native: 10
Classpath: 24
Ratio: 0.42


Francis




[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux