[foreign] Some benchmarks for Foreign vs JNA (vs pure java implementation)

Lev Serebryakov lev at serebryakov.spb.ru
Wed Mar 13 16:57:57 UTC 2019


On 13.03.2019 19:07, Maurizio Cimadamore wrote:

> http://cr.openjdk.java.net/~mcimadamore/panama/fftw-bulk.txt
> 
> Seems like Panama is marginally faster than JNA. In the FFTOnly case the
> speedup is bigger, and I suspect you were not seeing that on Windows
> because Windows doesn't have the direct invoker backend optimization.
> But when LinkToNative will be merged in, the numbers should improve
> across the board, Windows included (at which point we can bin the direct
> invoker backend which only really works on Linux/Mac).
> 
> I'll wait for your input, but it seems that adding fast paths for doing
> bulk array copy is the way to go for cases like these.
 Yep! Looks very promising!

 Thank you!

-- 
// Black Lion AKA Lev Serebryakov



More information about the panama-dev mailing list