Skip to content

bun has more connections + lingering cdn and higher RAM vs Node #7

@Espionage724

Description

@Espionage724

bun.exe (1.2.15 latest upstream, branch 225)

Connections: https://i.imgur.com/wIJdXj6.mp4

Image

Node 22.16.0:

Connections: https://i.imgur.com/iVW4g5k.mp4

Image

Both vids show the connections when server is starting up and after packing scripts 2/2. External connection on Node drop quick; both linger a while on bun, and one drops eventually.

The extra on local look like TCPV6 and not really a concern, but I'd be interested in disabling one or the other.


Bun also uses high RAM:

Image

It does 21GB private bytes seconds after start-up:
Image


It seems ok on Linux (bun 1.2.18 from bun-linux-x64.zip, 244 branch). I don't usually look at virtual mem, but while 70GB seems high, I haven't compared it to anything else :p

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions