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

perf: Add low-level memory ops benchmark #3551

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

berestovskyy
Copy link
Contributor

@berestovskyy berestovskyy commented Jan 22, 2025

$ bazel run //rs/memory_tracker:memory_ops_bench -- par_iter/threads:8
mmap/par_iter/threads:8/ops:100
                        time:   [1.2654 ms 1.2795 ms 1.2949 ms]
                        thrpt:  [77.227 Kelem/s 78.157 Kelem/s 79.028 Kelem/s]
mmap_mprotect/par_iter/threads:8/ops:100
                        time:   [1.8608 ms 1.8774 ms 1.8937 ms]
                        thrpt:  [52.808 Kelem/s 53.264 Kelem/s 53.740 Kelem/s]
mmap_mprotect_read/par_iter/threads:8/ops:100
                        time:   [4.9503 ms 4.9797 ms 5.0087 ms]
                        thrpt:  [19.965 Kelem/s 20.081 Kelem/s 20.201 Kelem/s]
mmap_mprotect_write/par_iter/threads:8/ops:100
                        time:   [9.0569 ms 9.1043 ms 9.1522 ms]
                        thrpt:  [10.926 Kelem/s 10.984 Kelem/s 11.041 Kelem/s]
mmap_mprotect_read_write/par_iter/threads:8/ops:100
                        time:   [19.574 ms 19.694 ms 19.815 ms]
                        thrpt:  [5.0466 Kelem/s 5.0778 Kelem/s 5.1087 Kelem/s]
mmap_read_write/par_iter/threads:8/ops:100
                        time:   [19.455 ms 19.597 ms 19.733 ms]
                        thrpt:  [5.0676 Kelem/s 5.1028 Kelem/s 5.1400 Kelem/s]
file_read_write/par_iter/threads:8/ops:100
                        time:   [315.32 µs 317.05 µs 318.70 µs]
                        thrpt:  [313.77 Kelem/s 315.41 Kelem/s 317.14 Kelem/s]

@github-actions github-actions bot added the perf label Jan 22, 2025
@berestovskyy berestovskyy force-pushed the andriy/memory-ops-benchmark branch 3 times, most recently from b60b105 to 7e5d72b Compare January 22, 2025 13:40
@berestovskyy berestovskyy force-pushed the andriy/memory-ops-benchmark branch from 7e5d72b to 9272dba Compare January 22, 2025 14:08
@berestovskyy berestovskyy marked this pull request as ready for review January 22, 2025 15:02
@berestovskyy berestovskyy requested review from a team as code owners January 22, 2025 15:02
@berestovskyy berestovskyy force-pushed the andriy/memory-ops-benchmark branch from 87d72d8 to 8368cfe Compare January 22, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants