Skip to content

Speed up CLI startup time #176

@agriyakhetarpal

Description

@agriyakhetarpal

Homebrew

❯ hyperfine --warmup 1 "hugo version"
Benchmark 1: hugo version
  Time (mean ± σ):      35.8 ms ±   2.3 ms    [User: 23.1 ms, System: 13.7 ms]
  Range (min … max):    34.2 ms …  53.6 ms    79 runs

hugo-python-distributions

❯ hyperfine --warmup 1 "hugo version"
Benchmark 1: hugo version
  Time (mean ± σ):      54.0 ms ±   5.3 ms    [User: 36.6 ms, System: 18.1 ms]
  Range (min … max):    50.5 ms …  83.7 ms    54 runs

Reading the VERSION file is fast enough, but I wonder if we can optimise further...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions