File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
- uses : actions/setup-python@v4
20
20
with :
21
- python-version : ' 3.10 '
21
+ python-version : ' 3.12 '
22
22
23
23
- uses : actions/cache@v3
24
24
id : cache-py
@@ -48,10 +48,12 @@ jobs:
48
48
49
49
- name : cache rust
50
50
uses : Swatinem/rust-cache@v2
51
+ with :
52
+ key : v1
51
53
52
54
- name : Compile pydantic-core for profiling
53
55
run : |
54
- pip install -e . --config-settings=build-args='--verbose' -v
56
+ pip install -e . --config-settings=build-args='--verbose --profile codspeed ' -v
55
57
env :
56
58
CONST_RANDOM_SEED : 0 # Fix the compile time RNG seed
57
59
RUSTFLAGS : " -Cprofile-generate=${{ github.workspace }}/profdata"
64
66
65
67
- name : Compile pydantic-core for benchmarking
66
68
run : |
67
- pip install -e . --config-settings=build-args='--verbose' -v
69
+ pip install -e . --config-settings=build-args='--verbose --profile codspeed ' -v
68
70
env :
69
71
CONST_RANDOM_SEED : 0 # Fix the compile time RNG seed
70
72
RUSTFLAGS : " -Cprofile-use=${{ github.workspace }}/merged.profdata"
Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ strip = true
63
63
debug = true
64
64
strip = false
65
65
66
+ [profile .codspeed ]
67
+ inherits = " release"
68
+ debug = true
69
+ strip = false
70
+
66
71
[dev-dependencies ]
67
72
pyo3 = { version = " 0.20.0" , features = [" auto-initialize" ] }
68
73
You can’t perform that action at this time.
0 commit comments