[LLVMdev] Performance of JNI in VMKit

Bruno Daniel abml at mailoo.org
Wed Jun 20 06:04:29 PDT 2012


Dear developers,

Are there any benchmarks for the performance of Java Native Interface (JNI)
calls in VMKit? Since VMKit is based on LLVM which can also run C++ code
(maybe in the same just-in-time compiler?) I guess calls from Java to C++ and
back could be much faster than in Sun's JVM which has extremely slow C++ ->
Java callbacks.

If this was the case, this would be a big advantage of VMKit over all other
JVMs and mixing existing C/C++ libraries with Java would be as easy as in the
glue language Python.

All the best
  Bruno Daniel



More information about the llvm-dev mailing list