Skip to content

Commit 3c134cd

Browse files
Alek PetuskeyAlek Petuskey
authored andcommitted
Test codespeed
1 parent 4da32a1 commit 3c134cd

14 files changed

+9122
-10
lines changed

.codspeed/results_1737338906383.json

Lines changed: 1037 additions & 0 deletions
Large diffs are not rendered by default.

.codspeed/results_1737339049018.json

Lines changed: 1143 additions & 0 deletions
Large diffs are not rendered by default.

.codspeed/results_1737339073664.json

Lines changed: 1143 additions & 0 deletions
Large diffs are not rendered by default.

.codspeed/results_1737339094692.json

Lines changed: 1143 additions & 0 deletions
Large diffs are not rendered by default.

.codspeed/results_1737339206717.json

Lines changed: 1143 additions & 0 deletions
Large diffs are not rendered by default.

.codspeed/results_1737339242040.json

Lines changed: 1143 additions & 0 deletions
Large diffs are not rendered by default.

.codspeed/results_1737339334189.json

Lines changed: 1143 additions & 0 deletions
Large diffs are not rendered by default.

.codspeed/results_1737339367654.json

Lines changed: 1143 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/codspeed.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CodSpeed
2+
3+
on:
4+
push:
5+
branches:
6+
- "main" # or "master"
7+
pull_request:
8+
# `workflow_dispatch` allows CodSpeed to trigger backtest
9+
# performance analysis in order to generate initial data.
10+
workflow_dispatch:
11+
12+
jobs:
13+
benchmarks:
14+
name: Run benchmarks
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.9"
21+
22+
- name: Install dependencies
23+
run: pip install -r requirements.txt
24+
25+
- name: Run benchmarks
26+
uses: CodSpeedHQ/action@v3
27+
with:
28+
token: ${{ secrets.CODSPEED_TOKEN }}
29+
run: pytest tests/ --codspeed

benchmarks/benchmark_compile_times.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
import os
88
from pathlib import Path
99

10-
from utils import send_data_to_posthog
11-
12-
1310
def extract_stats_from_json(json_file: str) -> list[dict]:
1411
"""Extracts the stats from the JSON data and returns them as a list of dictionaries.
1512
@@ -142,6 +139,6 @@ def main():
142139
pr_id=args.pr_id,
143140
)
144141

145-
146142
if __name__ == "__main__":
147143
main()
144+

0 commit comments

Comments
 (0)