Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Merge requests
!118
add storage benchmarks & base block benchmarks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add storage benchmarks & base block benchmarks
elois-benchmark-storage
into
master
Overview
0
Commits
7
Pipelines
12
Changes
4
Merged
Éloïs
requested to merge
elois-benchmark-storage
into
master
2 years ago
Overview
0
Commits
7
Pipelines
12
Changes
4
Expand
add storage benchmarks (reads/writes times measurements).
0
0
Merge request reports
Compare
master
version 5
9e464f4f
2 years ago
version 4
67c12227
2 years ago
version 3
99ea7675
2 years ago
version 2
af1d9ae5
2 years ago
version 1
03dcdc9b
2 years ago
master (base)
and
version 5
latest version
120c54b4
7 commits,
2 years ago
version 5
9e464f4f
5 commits,
2 years ago
version 4
67c12227
4 commits,
2 years ago
version 3
99ea7675
3 commits,
2 years ago
version 2
af1d9ae5
2 commits,
2 years ago
version 1
03dcdc9b
1 commit,
2 years ago
4 files
+
136
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
docs/dev/weights-benchmarking.md
+
13
−
1
Options
@@ -29,5 +29,17 @@ To cross-compile the benchmarks binary for armv7:
./scripts/cross-build-arm.sh --features runtime-benchmarks
```
The cross compiled binary is generated here:
`target/armv7-unknown-linux-gnueabihf/release/duniter`
## Generate storage benchmarking
1.
Build binary fopr reference machien and copy it on reference machine
2.
Copy a DB on reference machine (on ssd), example:
`scp -r -P 37015 tmp/t1 pi@192.168.1.188:/mnt/ssd1/duniter-v2s/`
3.
Run storage benchmarks command, example:
```
./duniter benchmark storage -d=/mnt/ssd1/duniter-v2s/t1 --chain=gdev --mul=2 --weight-path=. --state-version=1
```
4.
Copy the generated file
`paritydb_weights.rs`
in the codebase in folder
`runtime/common/src/weights/`
.
5.
Commit changes and open an MR.
Loading