Skip to content

Issues with speed when calling dbt-core (Typer) #35

Description

@joshuataylor

Honestly, just have two completions.

hyperfine --warmup 3 'zsh -c "source _dbt; words=(dbt run --se); CURRENT=3; _dbt"' --shell=zsh

Before:

Benchmark 1: zsh -c "source _dbt; words=(dbt run --se); CURRENT=3; _dbt"
  Time (mean ± σ):       6.8 ms ±   0.3 ms    [User: 2.3 ms, System: 3.6 ms]
  Range (min … max):     6.3 ms …   8.6 ms    266 runs

After:

Benchmark 1: zsh -c "source _dbt; words=(dbt run --se); CURRENT=3; _dbt"
  Time (mean ± σ):      2.348 s ±  0.709 s    [User: 2.050 s, System: 0.289 s]
  Range (min … max):    1.716 s …  3.490 s    10 runs

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