← All projects
Project record2 mentions
Originally shared on Hacker News

speedrunner

A tool that cuts the startup time of CLI calls by 4.5x while producing the same output.

Last shared
01 / The problem

What it addresses

CLI calls spend their time starting up.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. speedrunner

    A tool that cuts the startup time of CLI calls by 4.5x while producing the same output.

    Problem: CLI calls spend their time starting up.

    Posted by @anthonygosme · Original source ↗

    Story title · @anthonygosme · · Source ↗

    Show HN: CLI calls spend their time starting up. I cut it by 4.5x, same output

    Submitted URL · @anthonygosme · · Source ↗

    https://github.com/anthonyGosme/speedrunner
  2. Speedrunner

    A CLI tool that speeds up startup of Python, Ruby, PHP and Node command-line tools by loading each tool once into a daemon and forking a copy per invocation, with a Rust client. Falls back to the native tool if the daemon isn't running; median speedup 4.9x (eslint benchmark: 328 ms native vs 43 ms warm). Runs on Linux and macOS but not Windows; Node support is experimental.

    Problem: CLI tools spend hundreds of milliseconds starting up, which multiplied across dozens of calls from CI/CD and scripts adds up to a real slowdown.

    Posted by @anthonygosme · Original source ↗

    Story title · @anthonygosme · · Source ↗

    Show HN: Speedrunner – Faster Startup: Python, Ruby, PHP and Node CLI Tools

    Submitted URL · @anthonygosme · · Source ↗

    https://github.com/anthonyGosme/speedrunner

    Source text · @anthonygosme · · Source ↗

    So I was getting tired of waiting around for all my command-line tools to start up. And sure, you might say, a few hundred milliseconds isn't that much. But multiply that by dozens and dozens of calls from ci/cd and scripts, and now you're starting to talk about a real slowdown.

    Source text · @anthonygosme · · Source ↗

    What if I just loaded each of my tools once, kept them in memory, and then forked a copy whenever I actually needed one? And maybe I'd even write the client in Rust so it would be blazing fast.

    Source text · @anthonygosme · · Source ↗

    I've got a benchmark in the repo that runs eslint on a file. Natively it takes 328 ms, and with a warm daemon it takes 43 ms

    Source text · @anthonygosme · · Source ↗

    if something goes wrong before it starts, speedrunner falls back to the normal tool. But once it's started, it won't run it again.

    Source text · @anthonygosme · · Source ↗

    It runs on Linux and macOS, but not Windows.