Skip to content

Commit

Permalink
Merge pull request #177 from huitseeker/remove_dependencies
Browse files Browse the repository at this point in the history
chore: run unused dependency detection in CI, remove unused dependencies
  • Loading branch information
huitseeker authored Jan 14, 2022
2 parents 48d8764 + 79f9fcc commit f97e0a8
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 8 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: EmbarkStudios/cargo-deny-action@v1

cargo-udeps:
name: cargo-udeps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install minimal nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v1
- name: Install cargo-udeps
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-udeps
- name: run cargo-udeps
run: cargo +nightly udeps
3 changes: 3 additions & 0 deletions fastpay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ path = "src/server.rs"
[[bin]]
name = "bench"
path = "src/bench.rs"

[package.metadata.cargo-udeps.ignore]
normal = ["net2"]
1 change: 0 additions & 1 deletion fastpay_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ edition = "2021"
rocksdb = "0.17.0"
anyhow = "1.0.52"
bcs = "0.1.3"
failure = "0.1.8"
futures = "0.3.5"
rand = "0.7.3"
serde = { version = "1.0.133", features = ["derive"] }
Expand Down
4 changes: 4 additions & 0 deletions fastx_programmability/framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ move-stdlib = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9
move-unit-test = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-vm-runtime = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-vm-types = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }


[package.metadata.cargo-udeps.ignore]
normal = ["move-cli", "move-unit-test"]
2 changes: 1 addition & 1 deletion fastx_programmability/verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ move-binary-format = { git = "https://github.com/diem/move", rev="98ed299a7e3a92
move-bytecode-verifier = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-core-types = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }

fastx-types = { path = "../../fastx_types" }
fastx-types = { path = "../../fastx_types" }
5 changes: 0 additions & 5 deletions fastx_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@ anyhow = "1.0.52"
base64 = "0.13.0"
bcs = "0.1.3"
bincode = "1.3.3"
failure = "0.1.8"
futures = "0.3.5"
rand = "0.7.3"
serde = { version = "1.0.133", features = ["derive"] }
tokio = { version = "1.15.0", features = ["full"] }
ed25519 = "1.3.0"
ed25519-dalek = { version = "1.0.1", features = ["batch", "serde"] }
serde-name = "0.2.0"
sha3 = "0.9"
structopt = "0.3.25"
thiserror = "1.0.30"
rocksdb = "0.17.0"

move-binary-format = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-core-types = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }

1 comment on commit f97e0a8

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bench results

�[0m�[0m�[1m�[32m Finished�[0m release [optimized + debuginfo] target(s) in 2.33s
�[0m�[0m�[1m�[32m Running�[0m target/release/bench
[2022-01-14T21:31:01Z INFO bench] Starting benchmark: OrdersAndCerts
[2022-01-14T21:31:01Z INFO bench] Preparing accounts.
[2022-01-14T21:31:01Z INFO bench] Open database on path: "/tmp/DB_2540ED3DCFFEAEA09DF7E82289CE03CF"
[2022-01-14T21:31:06Z INFO bench] Preparing transactions.
[2022-01-14T21:31:16Z INFO fastpay::network] Listening to Tcp traffic on 127.0.0.1:9555
[2022-01-14T21:31:17Z INFO bench] Number of TCP connections: 2
[2022-01-14T21:31:17Z INFO bench] Set max_in_flight to 500
[2022-01-14T21:31:17Z INFO bench] Sending requests.
[2022-01-14T21:31:17Z INFO fastpay::network] Sending Tcp requests to 127.0.0.1:9555
[2022-01-14T21:31:18Z INFO fastpay::network] 127.0.0.1:9555 has processed 5000 packets
[2022-01-14T21:31:20Z INFO fastpay::network] In flight 500 Remaining 35000
[2022-01-14T21:31:20Z INFO fastpay::network] 127.0.0.1:9555 has processed 10000 packets
[2022-01-14T21:31:21Z INFO fastpay::network] 127.0.0.1:9555 has processed 15000 packets
[2022-01-14T21:31:23Z INFO fastpay::network] In flight 500 Remaining 30000
[2022-01-14T21:31:23Z INFO fastpay::network] 127.0.0.1:9555 has processed 20000 packets
[2022-01-14T21:31:25Z INFO fastpay::network] 127.0.0.1:9555 has processed 25000 packets
[2022-01-14T21:31:26Z INFO fastpay::network] In flight 500 Remaining 25000
[2022-01-14T21:31:26Z INFO fastpay::network] 127.0.0.1:9555 has processed 30000 packets
[2022-01-14T21:31:28Z INFO fastpay::network] 127.0.0.1:9555 has processed 35000 packets
[2022-01-14T21:31:29Z INFO fastpay::network] In flight 500 Remaining 20000
[2022-01-14T21:31:29Z INFO fastpay::network] 127.0.0.1:9555 has processed 40000 packets
[2022-01-14T21:31:30Z INFO fastpay::network] 127.0.0.1:9555 has processed 45000 packets
[2022-01-14T21:31:30Z INFO fastpay::network] In flight 500 Remaining 15000
[2022-01-14T21:31:31Z INFO fastpay::network] 127.0.0.1:9555 has processed 50000 packets
[2022-01-14T21:31:31Z INFO fastpay::network] In flight 500 Remaining 15000
[2022-01-14T21:31:32Z INFO fastpay::network] 127.0.0.1:9555 has processed 55000 packets
[2022-01-14T21:31:32Z INFO fastpay::network] In flight 500 Remaining 10000
[2022-01-14T21:31:33Z INFO fastpay::network] 127.0.0.1:9555 has processed 60000 packets
[2022-01-14T21:31:33Z INFO fastpay::network] In flight 500 Remaining 10000
[2022-01-14T21:31:34Z INFO fastpay::network] 127.0.0.1:9555 has processed 65000 packets
[2022-01-14T21:31:34Z INFO fastpay::network] In flight 500 Remaining 5000
[2022-01-14T21:31:35Z INFO fastpay::network] 127.0.0.1:9555 has processed 70000 packets
[2022-01-14T21:31:35Z INFO fastpay::network] In flight 500 Remaining 5000
[2022-01-14T21:31:36Z INFO fastpay::network] 127.0.0.1:9555 has processed 75000 packets
[2022-01-14T21:31:36Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-14T21:31:37Z INFO fastpay::network] 127.0.0.1:9555 has processed 80000 packets
[2022-01-14T21:31:37Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-14T21:31:37Z INFO bench] Received 80000 responses.
[2022-01-14T21:31:37Z WARN bench] Completed benchmark for OrdersAndCerts
Total time: 20132015us, items: 40000, tx/sec: 1986.8850683848586

Please sign in to comment.