Skip to content

0.11.0 seems to be slower than 0.10.2 on Ubuntu #1777

@neur1n

Description

@neur1n

Checklist

What operating system and version are you using?

Ubuntu 20.04 & 22.04

What architecture are you using?

x86_64/AMD64

What terminal(s) are you running bottom on that are experiencing the problem?

Wezterm 20240204-094054-a0974a25

(Optional) What filesystem(s) are you using?

No response

What version of bottom are you running?

0.11.0

How did you install bottom?

Installed by downloading prebuilt binary from GitHub.

Describe the issue

Version 0.11.0 of bottom exhibits significantly higher latency compared to version 0.10.2 when displaying the initial statistics, on Ubuntu but not Windows 11 though.

Testing Method:

  1. Launch btm and immediately exit upon the appearance of the statistics.
  2. Measure the elapsed time using $env.CMD_DURATION_MS in Nushell. Acknowledging this is not a precise benchmark, but relative differences are notable.

Results:
• 0.10.2: ~2447 ms
• 0.11.0: ~12344 ms

What is the expected behaviour?

The latency should be similar.

What is the actual behaviour?

Statistics takes a long time to show up.

How can we reproduce this?

Launch bottom and profile the time it takes for the initial statistics to show up.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working the way that is expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions