Skip to content

Small investigation: Bun vs Node.js for Payload's server startup/performance #17141

Description

@dmitriivasilev-dev

Hi,

In the payloadcms/payload project, the core application likely runs on Node.js, as indicated by files like the dockerfile and the server entrypoint. A recent KrabArena battle comparing Bun and Node.js for general server-side workloads showed Bun as the winner, specifically in areas like startup time and overall request handling efficiency. You can review the full benchmark comparison for details.

Given Payload's nature as a dashboard and API, potential improvements in startup time and runtime performance could be beneficial for both development and deployment environments. We suggest a small, optional investigation: creating a benchmark branch to test running Payload's core server with Bun, focusing on metrics such as cold start performance and request throughput compared to the current Node.js setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions