Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
core
picodata
Commits
cfcfba16
Commit
cfcfba16
authored
2 years ago
by
Valentin Syrovatskiy
Browse files
Options
Downloads
Patches
Plain Diff
chore: benchmark/flamegraph instructions
parent
f77d4e53
No related branches found
No related tags found
1 merge request
!328
chore: benchmark/flamegraph instructions
Pipeline
#13183
passed
2 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CONTRIBUTING.md
+51
-0
51 additions, 0 deletions
CONTRIBUTING.md
with
51 additions
and
0 deletions
CONTRIBUTING.md
+
51
−
0
View file @
cfcfba16
...
...
@@ -102,3 +102,54 @@ pipenv run lint
```
bash
python3.10 -m pipenv run pytest -n 20
```
## Benchmarks and flamegraphs
### Benchmarks
There is simple benchmark based on pytest scenario. Quick run it with
```
bash
make benchmark
```
The benchmark consist of two parts: benchmark of tarantool space operations (replaces) and benchmark of picodata's raft writes to leader (NOPs).
You will see both results.
The benchmark designed for quick estimate of current application performance.
### Flamegraphs
It is possible to make [flamegraphs](https://github.com/brendangregg/FlameGraph) while benchmarking debug build.
- Install `perf`:
```
bash
apt install -y linux-tools-common linux-tools-generic linux-tools-
`uname -r`
```
- Install FlameGraph script:
```
bash
cd .. && git clone https://github.com/brendangregg/FlameGraph.git ; cd -
```
Your folder structure will look like this:
```
..
picodata (you here)
FlameGraph
(other folders and files)
```
- Set kernel options for `perf`:
```
bash
sudo echo 0 > /proc/sys/kernel/perf_event_paranoid
```
```bash
sudo echo 0 > /proc/sys/kernel/kptr_restrict
```
-
Now run
```
bash
make flamegraph
```
Flamegraphs will be placed in
`tmp/flamegraph`
dir.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment