Skip to content

Commit

Permalink
Update spec for test changes, add "bench" subcommand (#112)
Browse files Browse the repository at this point in the history
Updates ndc-spec and adds a bench subcommand for simple benchmarks of connectors built with the SDK:

```
Usage: ndc_hub_example bench [OPTIONS] --configuration <DIRECTORY> --snapshots-dir <DIRECTORY>

Options:
      --configuration <DIRECTORY>  [env: HASURA_CONFIGURATION_DIRECTORY=]
      --samples <COUNT>            the number of samples to collect per test [default: 100]
      --tolerance <TOLERANCE>      tolerable deviation from previous report, in standard deviations from the mean
      --snapshots-dir <DIRECTORY>  [env: HASURA_SNAPSHOTS_DIR=]
  -h, --help                       Print help
```
  • Loading branch information
paf31 authored Mar 4, 2024
1 parent 35f8388 commit ec03381
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 175 deletions.
90 changes: 3 additions & 87 deletions Cargo.lock

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

8 changes: 6 additions & 2 deletions rust-connector-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ path = "src/lib.rs"
name = "ndc_hub_example"
path = "bin/main.rs"

[features]
ndc-test = ["dep:ndc-test"]
default = ["ndc-test"]

[dependencies]
gdc_rust_types = { git = "https://github.com/hasura/gdc_rust_types.git", rev = "3273434" }
ndc-client = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.18" }
ndc-test = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.18" }
ndc-client = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.0" }
ndc-test = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.0", optional = true }

async-trait = "^0.1.74"
axum = "^0.6.20"
Expand Down
Loading

0 comments on commit ec03381

Please sign in to comment.