Any benchmark of using ebpf map hash / array type from golang? is it fast? #624
Answered
by
lmb
hiqsociety
asked this question in
Q&A
-
Any benchmark of using ebpf map hash / array type from golang? is it fast? the call is it cgo or pure go? just wondering how much garbage is generated if using go and how fast it is if using cgo. |
Beta Was this translation helpful? Give feedback.
Answered by
lmb
Apr 14, 2022
Replies: 1 comment 2 replies
-
Hi, there should be some basic benchmarks mixed in with the tests. Feel free to take a look. The library doesn't use cgo for syscalls, so it's probably going to be as fast as it will get. For simple map types like arrays syscall overhead will dominate the total time. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
florianl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, there should be some basic benchmarks mixed in with the tests. Feel free to take a look.
The library doesn't use cgo for syscalls, so it's probably going to be as fast as it will get. For simple map types like arrays syscall overhead will dominate the total time.