2 ms·
According 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.
by masklinn 9y ago
According 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...