That's an interesting topic, especially with Java as it lacks some valuable features most of us will need at some point.
Whenever I needed to benchmark JNI call overhead, depending mostly on the kernel and the cpu, I got times from single digit to low tens of nanoseconds.
However, my experience is limited to working with primitive arguments as I always need to prevent native code to interact with Java heap.
I'm certain people on this list have had experience with more complex scenarios.
Calling into c from the jvm is no low effort activity. The last time I measured parking and unparking was pretty slow. I know the contemporary jvm has some improvements but I am curious if there's a guide of all the overhead. How does the jvm compare to go or python? How about getting data to and fro? If I am running tons of threads when I make the call?
--
You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Calling into c from the jvm is no low effort activity. The last time I measured parking and unparking was pretty slow. I know the contemporary jvm has some improvements but I am curious if there's a guide of all the overhead. How does the jvm compare to go or python? How about getting data to and fro? If I am running tons of threads when I make the call?
--
You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-sympathy+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "mechanical-sympathy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mechanical-sympathy/Kqh26EcKG8Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mechanical-symp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.