question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Q] How much performance gain will there be if this was ported to golang or rust?

See original GitHub issue

Currently,bpytop uses around 4-6% CPU constantly, which disallows leaving it running in the background.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
aristocratoscommented, Oct 29, 2020

@NightMachinary Cpu usage is dependant on your specific cpu, frequency, os, python version and bpytop update frequency. For reference, bpytop at standard update uses less cpu than glances, gtop and about as much as gotop.

Looking at ytop written in rust, it uses about half as much cpu, but it also has a more minimalist UI.

There will likely be a rust version some time in the future, but not so much for performance reasons, but more as a project for me to learn rust.

If you need a lightweight proc monitor, htop is probably still the best alternative with about 1/4 - 1/5 of the usage bpytop has.

0reactions
GTANAdamcommented, Sep 19, 2021

@GTANAdam

Well I just released the C++ version https://github.com/aristocratos/btop

That might be a better base to use for a port to Go

Good luck regardless of what you decide, and I wouldn’t mind if you keep me updated how it goes 😃

I’ve just noticed it, thank you for this piece of software, there’s basically no reason to port to Golang if there’s a C++ version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Go (Golang) vs. Rust: Performance Comparison - Clockwise
On-par performance​​ Both Go and Rust have excellent built-in, high-performance standard build and dependency management tools. Rust will almost always beat Go ......
Read more >
Rust vs. Go: Why They're Better Together - The New Stack
As your product matures, and requirements stabilize, there may be opportunities to have large wins from marginal increases in performance.
Read more >
Go vs Rust: What to choose in 2022? - OpenXcell
Yes, Golang uses call-by-value which reduces the job of the garbage collector significantly, thus increasing the speed and supporting memory- ...
Read more >
Why do you prefer Go over Rust ? : r/golang - Reddit
Rust gives performance and a bit of additional safety[^1 ] but it trades off a *lot* of productivity. [^1]: I'm very familiar with...
Read more >
When to use Rust and when to use Go - LogRocket Blog
Right off the bat, there are clear differences between Go and Rust. Go has a stronger focus on building web APIs and small...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found