Skip to content

Commit dbdf001

Browse files
committed
Use default allocator in benchmarks
1 parent e7108e8 commit dbdf001

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/codspeed.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646
- name: cache rust
4747
uses: Swatinem/rust-cache@v2
4848

49-
- run: pip install . -v
49+
- run: |
50+
pip install . -v # For dependencies
51+
make build-prod # Get the release build without MiMalloc
5052
env:
5153
CONST_RANDOM_SEED: 0 # Fix the compile time RNG seed
5254

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ crate-type = ["cdylib", "rlib"]
5151
extension-module = ["pyo3/extension-module"]
5252
# required for cargo bench
5353
auto-initialize = ["pyo3/auto-initialize"]
54-
default = ["mimalloc", "mimalloc/local_dynamic_tls", "pyo3/generate-import-lib", "pyo3/num-bigint"]
54+
mimalloc = ["mimalloc", "mimalloc/local_dynamic_tls"]
55+
default = ["pyo3/generate-import-lib", "pyo3/num-bigint"]
5556

5657
[profile.release]
5758
lto = "fat"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Source = 'https://github.com/pydantic/pydantic-core'
4646
[tool.maturin]
4747
module-name = "pydantic_core._pydantic_core"
4848
bindings = 'pyo3'
49-
features = ["pyo3/extension-module"]
49+
features = ["pyo3/extension-module", "mimalloc"]
5050

5151
[tool.ruff]
5252
line-length = 120

0 commit comments

Comments
 (0)