Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ members = [
"crates/lance-graph",
"crates/lance-graph-catalog",
"crates/lance-graph-python",
"crates/lance-graph-benches",
]
resolver = "2"
20 changes: 20 additions & 0 deletions crates/lance-graph-benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "lance-graph-benches"
version = "0.1.0"
edition = "2021"
publish = false
description = "Benchmarks for lance-graph (not published)"

[dependencies]
lance-graph = { path = "../lance-graph", version = "0.5.3" }
lance = "1.0.0"
arrow-array = "56.2"
arrow-schema = "56.2"
criterion = { version = "0.5", features = ["async", "async_tokio", "html_reports"] }
futures = "0.3"
tempfile = "3"
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }

[[bench]]
name = "graph_execution"
harness = false
28 changes: 28 additions & 0 deletions crates/lance-graph-benches/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Lance Graph Benchmarks

Performance benchmarks for the `lance-graph` crate.

## Running Benchmarks

From the repository root:

```bash
# Run all benchmarks
cargo bench -p lance-graph-benches

# Run specific benchmark
cargo bench -p lance-graph-benches --bench graph_execution
```

## Benchmarks

- **graph_execution**: End-to-end query execution benchmarks
- Basic node filtering and projection
- Single-hop relationship expansion
- Two-hop relationship expansion
- Tests with datasets of varying sizes (100, 10K, 1M rows)

## Note

This crate is not published to crates.io and is excluded from releases.
It exists solely for performance testing during development.
6 changes: 0 additions & 6 deletions crates/lance-graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@ unity-catalog = ["lance-graph-catalog/unity-catalog"]
delta = ["dep:deltalake", "dep:url"]

[dev-dependencies]
criterion = { version = "0.5", features = ["async", "async_tokio", "html_reports"] }
futures = "0.3"
lance-arrow = "1.0.0"
lance-index = "1.0.0"
tempfile = "3"
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }

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