Skip to content

Replace ms w/ way more performant @lukeed/ms #278

Open

Description

@SukkaW

@lukeed/ms is a fork of vercel's ms that is consistently faster (up from 40% to 2x faster), though with a slightly bigger installation size (9.4 KiB compared to 6.7 KiB due to @lukeed/ms shipping tripple CJS/ESM/UMD while vercel's ms only ships pure CJS, which is just not a huge deal anyway).

vercel's ms is mostly used by the popular debug library, while @lukeed/ms usage is growing rapidly and is being adopted by Hey API and the Fastify ecosystem.

Activity

  1. changed the title [-]Replace `ms` w/ `@lukeed/ms`[/-] [+]Replace `ms` w/ way more performant `@lukeed/ms`[/+] on Jul 25, 2026
  2. SukkaW commented on Jul 25, 2026

    @SukkaW
    Author

    Though the installation size is slightly bigger, @lukeed/ms shipping ESM variant is a nice-to-have over CJS-only ms. Also after bundled @lukeed/ms will be extremely small with less than 1 KiB bundle size.

  3. gameroman commented on Jul 25, 2026

    @gameroman

    Would be nice if it shipped a single build instead of 3

  4. ghostdevv commented on Jul 30, 2026

    @ghostdevv
    Member

    there's also itty-time

  5. SukkaW commented on Jul 31, 2026

    @SukkaW
    Author

    itty-time

    Slower than @lukeed/ms in raw performance, but also smaller and feature-richer. Both are good candidate for replacing vercel's ms here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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