Add airflow benchmark (#3643)

## Summary

This seems to be one of the most consistent benchmark cases we have in
terms of standard deviation:
```
➜  hyperfine "target/profiling/main pip compile scripts/requirements/airflow.in" --runs 200
Benchmark 1: target/profiling/main pip compile scripts/requirements/airflow.in
  Time (mean ± σ):     292.6 ms ±   6.6 ms    [User: 414.1 ms, System: 194.2 ms]
  Range (min … max):   282.7 ms … 320.1 ms    200 runs
```

For smaller benchmarks, scispacy and dtlssocket seem to be a bit more
consistent than our current jupyter benchmark, but it hasn't given us
any problems so I'll leave it for now.
This commit is contained in:
Ibraheem Ahmed
2024-05-23 13:25:54 -04:00
committed by GitHub
parent 8f0f4d2e0c
commit 0d2f3fc4e4
5 changed files with 83 additions and 102 deletions
+6
View File
@@ -1057,6 +1057,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: "Install requirements and prime cache"
run: |
sudo apt-get install -y libsasl2-dev libldap2-dev libkrb5-dev
cargo run --bin uv -- venv --cache-dir .cache
cargo run --bin uv -- pip compile scripts/requirements/airflow.in --cache-dir .cache
- name: "Build benchmarks"
run: cargo codspeed build --features codspeed -p bench