5 ms·
That article comment is from 2011, is cgo still slower than JNI?
by yumaikas 9y ago
That article comment is from 2011, is cgo still slower than JNI?
- masklinn 9y agoAccording to this old SO comment[0] JNI calls on x86_64 have an overhead of about 6ns. On my machine (2010 MBP @ 2.4GHz), cgo calls have an overhead of ~120ns. [0] https://stackoverflow.com/questions/13973035/what-is-the-quantitative-overhead-of-making-a-jni-call https://stackoverflow.com/questions/13973035/what-is-the-qua...