Java Performance Shootout: Foreign Linker vs JNI | Modern Java | JDK16 | Head Crashing Informatics 28

Hey guys! How’s it going?

The #ForeignLinkerAPI, which is in incubation in #JDK16, was announced to be as fast as, OR EVEN FASTER AS, #JNI (#JavaNativeInterface, the sole OFFICIAL way to call native code from Java). But how looks the realitity? See an ACTUAL performance shootout of the Foreign Linker API vs JNI, AND VERSUS #JNA (#JavaNativeAccess, the DE-FACTO way for invoking native code from #Java). I don’t want to spoil TOO MUCH, but prepare yourself for adopting the new API AS SOON AS YOU CAN…!

In this video, I am using the #JavaMicrobenchmarkHarness (#JMH), see

The source code of the shootout can be found on Gitlab:

If you like this video, please give it a thumbs up, share it, subscribe to my channel, or become my patreon. Thanks!

Stay safe and… Party on!

About Markus Karg

Java Guru with +30 years of experience in professional software development. I travelled the whole world of IT, starting from Sinclair's great ZX Spectrum 48K, Commodore's 4040, over S/370, PCs since legendary XT, CP/M, VM/ESA, DOS, Windows (remember 3.1?), OS/2 WARP, Linux to Android and iOS... and still coding is my passion, and Java is my favourite drug!
This entry was posted in Jakarta EE, Java, Programming, Standards and tagged , , , , , , , , , , , , . Bookmark the permalink.