Rockfish's CPU usage continuously increases as it runs (though this won't show on system monitor, which is weird).
To Reproduce
Run Rockfish and use gops to check its PID CPU usage. It will build over time.
Expected behavior
Rockfish's CPU usage should remain more-or-less stable as it runs.
Notes
I think this must be due to goroutines eating up resources as they loop, but the number of goroutines doesn't increase over time. Quick research indicates that using tickers, which Rockfish does, can be expensive.
Describe the bug
Rockfish's CPU usage continuously increases as it runs (though this won't show on system monitor, which is weird).
To Reproduce
Run Rockfish and use
gops
to check its PID CPU usage. It will build over time.Expected behavior Rockfish's CPU usage should remain more-or-less stable as it runs.
Notes I think this must be due to goroutines eating up resources as they loop, but the number of goroutines doesn't increase over time. Quick research indicates that using tickers, which Rockfish does, can be expensive.
Version
Additional context This is especially a problem if running on a paid VM like AWS that charges by CPU usage.