Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add query benchmarking suite for pg_analytics #131

Closed
Closed
1,238 changes: 1,113 additions & 125 deletions Cargo.lock

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ license = "AGPL-3.0"
[lib]
crate-type = ["cdylib", "rlib"]

[workspace]
members = [".", "pg_analytics_benches"]

[features]
default = ["pg16"]
pg12 = ["pgrx/pg12", "pgrx-tests/pg12"]
Expand All @@ -33,6 +36,7 @@ strum = { version = "0.26.3", features = ["derive"] }
supabase-wrappers = { git = "https://github.com/paradedb/wrappers.git", default-features = false, rev = "19d6132" }
thiserror = "1.0.63"
uuid = "1.10.0"
heapless = "0.7.16"

[dev-dependencies]
aws-config = "1.5.6"
Expand All @@ -55,11 +59,21 @@ sqlx = { version = "0.7.4", features = [
"chrono",
] }
tempfile = "3.12.0"
testcontainers = "0.16.7"
testcontainers-modules = { version = "0.4.3", features = ["localstack"] }
testcontainers = { version = "0.22.0" }
testcontainers-modules = { version = "0.10.0", features = ["localstack"] }
time = { version = "0.3.36", features = ["serde"] }
geojson = "0.24.1"
rand = { version = "0.8.5" }
approx = "0.5.1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "time"] }
tokio = { version = "1.0", features = ["full"] }
once_cell = "1.19.0"
prettytable = { version = "0.10.0" }

[[bin]]
name = "pgrx_embed_pg_analytics"
path = "src/bin/pgrx_embed.rs"

[patch.crates-io]
testcontainers = { package = "testcontainers", git = "https://github.com/shamb0/testcontainers-rs.git", rev = "b05c13d" }
74 changes: 74 additions & 0 deletions pg_analytics_benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[package]
name = "pg_analytics_benches"
version = "0.1.0"
edition = "2021"

workspace = ".."

[features]
default = ["pg16"]
pg12 = ["pgrx/pg12", "pgrx-tests/pg12"]
pg13 = ["pgrx/pg13", "pgrx-tests/pg13"]
pg14 = ["pgrx/pg14", "pgrx-tests/pg14"]
pg15 = ["pgrx/pg15", "pgrx-tests/pg15"]
pg16 = ["pgrx/pg16", "pgrx-tests/pg16"]
pg_test = []

[dependencies]
anyhow = "1.0.83"
async-std = { version = "1.12.0", features = ["tokio1", "attributes"] }
chrono = "0.4.34"
duckdb = { git = "https://github.com/paradedb/duckdb-rs.git", features = [
"bundled",
"extensions-full",
], rev = "e532dd6" }
pgrx = "0.12.1"
serde = "1.0.201"
serde_json = "1.0.120"
signal-hook = "0.3.17"
strum = { version = "0.26.3", features = ["derive"] }
shared = { git = "https://github.com/paradedb/paradedb.git", rev = "e6c285e" }
supabase-wrappers = { git = "https://github.com/paradedb/wrappers.git", default-features = false, rev = "19d6132" }
thiserror = "1.0.59"
uuid = "1.9.1"
heapless = "0.7.16"

[dev-dependencies]
aws-config = "1.5.1"
aws-sdk-s3 = "1.34.0"
bigdecimal = { version = "0.3.0", features = ["serde"] }
bytes = "1.7.1"
datafusion = "37.1.0"
deltalake = { version = "0.17.3", features = ["datafusion"] }
futures = "0.3.30"
pgrx-tests = "0.12.1"
rstest = "0.19.0"
serde_arrow = { version = "0.11.3", features = ["arrow-51"] }
soa_derive = "0.13.0"
sqlx = { version = "0.7.3", features = [
"postgres",
"runtime-async-std",
"time",
"bigdecimal",
"uuid",
"chrono",
] }
tempfile = "3.12.0"
testcontainers = { version = "0.22.0" }
testcontainers-modules = { version = "0.10.0", features = ["localstack"] }
time = { version = "0.3.34", features = ["serde", "macros", "local-offset"] }
geojson = "0.24.1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "time"] }
rand = { version = "0.8.5" }
approx = "0.5.1"
prettytable = { version = "0.10.0" }
once_cell = "1.19.0"
criterion = { version = "0.4", features = ["async_tokio"] }
tokio = { version = "1.0", features = ["full"] }
cargo_metadata = { version = "0.18.0" }
camino = { version = "1.0.7", features = ["serde1"] }

[[bench]]
name = "cache_performance"
harness = false
Loading