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

bench(synth-bench): make binary selection more explicit #12817

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
3 changes: 2 additions & 1 deletion benchmarks/synth-bm/justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
neard := "../../target/release/neard"
# Place the `neard` binary to be benchmarked here.
neard := "./neard"
near_localnet_home := ".near/"
mooori marked this conversation as resolved.
Show resolved Hide resolved
rpc_url := "http://127.0.0.1:3030"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Details of bringing up and configuring a network are out of scope for this docum

### Build `neard`

Choose the git commit and cargo features corresponding to what you want to benchmark. Most likely you will want a `--release` build to measure TPS.

Choose the git commit and cargo features corresponding to what you want to benchmark. Most likely you will want a `--release` build to measure TPS. Place the corresponding `neard` binary in the justfile's directory or adjust commands and justfile variables to point to your binary.
### Initialize the network

```command
Expand Down Expand Up @@ -113,4 +113,6 @@ Following these steps so far creates a config that will throttle throughput due
}
```

cspell:words
mooori marked this conversation as resolved.
Show resolved Hide resolved
<!-- cspell:words unlimiting -->
Note that as `nearcore` evolves, these steps and `BENCHMARKNET` adjustments might need to be updated to achieve the effect of unlimiting configuration.
Loading