Skip to content

Commit

Permalink
feat(bench): add tooling for synthetic native transfer benchmarks (#1…
Browse files Browse the repository at this point in the history
…2570)

Adds tooling to benchmark native token transfers with the
`benchmark-native-transfer` command. The accounts involved in that
benchmark can be generated with `create-sub-accounts`. Examples of how
to execute both commands are given in the `justfile`. Documentation is
available in `benchmarking_synthetic_workloads.md`.

The tooling is based on Rust and `near-jsonrpc-client`. Having the Rust
toolchain installed should be sufficient to use it.

This PR is rather big. Splitting it up into smaller pieces would result
in parts that don't fully support running a workload. I assume that
wouldn't be favorable.

The code added here is benchmark tooling only which doesn't affect
`neard`, so I it shouldn't be able to break anything in production.
  • Loading branch information
mooori authored Dec 12, 2024
1 parent 4ee8111 commit 649743f
Show file tree
Hide file tree
Showing 12 changed files with 3,662 additions and 54 deletions.
120 changes: 66 additions & 54 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions benchmarks/synth-bm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.near/
target/
user-data/
Loading

0 comments on commit 649743f

Please sign in to comment.