Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any Benchmarks Against gopsutil? #70

Open
AtakanColak opened this issue Mar 4, 2020 · 3 comments
Open

Any Benchmarks Against gopsutil? #70

AtakanColak opened this issue Mar 4, 2020 · 3 comments

Comments

@AtakanColak
Copy link

AtakanColak commented Mar 4, 2020

Hello, I use gopsutil in order to get process information on a computer. I'm also interested in Rust, hopefully will start learning in a month. I came across this project through gopsutil -> gotop -> ytop -> rust-psutil and am quite curious about how rust-psutil performs against gopsutil. If anyone has any benchmark results in terms of time, cpu and memory usage, or even just the experience really, could you share them? Thank you.

PS: Should anyone be interested in providing rust-psutil benchmarking, perhaps I can provide you with gopsutil benchmarks.

@cjbassi
Copy link
Collaborator

cjbassi commented Mar 4, 2020

Benchmarks are a good idea. I don't think there are any currently but I could maybe work on that. One interesting thing to note is that gopsutil doesn't use any cgo and instead prefers to use sub-processes to gather data from external programs in order to improve cross compilation support. However I imagine that this is a big performance hit.

@AtakanColak
Copy link
Author

Today I've found the opportunity to delve deeper into the functionality provided by rust-psutil. It is not as extensive as gopsutil yet. However I still would like to compare the benchmarks for existing functions. You may be right, however there is also an overhead for cgo calls, which might add up to a performance hit as well. This only makes me more curious about the benchmarks. Do let me know if I can help you about it.

@cjbassi
Copy link
Collaborator

cjbassi commented Mar 5, 2020

Sure, well feel free to contribute any benchmarks.

Btw, it seems like this standard way to benchmark in rust is to use https://github.com/bheisler/criterion.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants