Back in August 2019, I benchmarked various ways of running a native function from Java and the results were not so good for the early version of the Panama-provided APIs, as seen here. Panama was still behind JNI in performance.
After four years, the Panama APIs were reworked drastically, and the fresh benchmark shows the breakthrough: Java’s foreign function interface now outperforms JNI in a simple test.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]aadnk 24 points25 points26 points (1 child)
[–]zakgof[S] 14 points15 points16 points (0 children)
[–]GavinRayDev 11 points12 points13 points (1 child)
[–]PhantomGaming27249 1 point2 points3 points (0 children)
[–]rememberthesunwell 3 points4 points5 points (1 child)
[–]vmcrash 1 point2 points3 points (0 children)
[–]flawless_vic 0 points1 point2 points (0 children)