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

[BENCHMARK] Try slab and bench with mokabench. #452

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MrCroxx
Copy link
Collaborator

@MrCroxx MrCroxx commented Apr 29, 2024

Signed-off-by: MrCroxx mrcroxx@outlook.com## What's changed and what's your intention?

Please explain IN DETAIL what the changes are in this PR and why they are needed. :D

Checklist

  • I have written the necessary rustdoc comments
  • I have added the necessary unit tests and integration tests
  • I have passed make all (or make fast instead if the old tests are not modified) in my local environment.

Related issues or PRs (optional)

Signed-off-by: MrCroxx <mrcroxx@outlook.com>
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
@MrCroxx MrCroxx self-assigned this Apr 29, 2024
@MrCroxx
Copy link
Collaborator Author

MrCroxx commented Apr 29, 2024

cargo build --release -F foyer_slab && ./target/release/mokabench --num-clients 1,3,6
Async runtime: Tokio
Config { trace_file: S3, ttl: None, tti: None, num_clients: Some([1, 3, 6]), repeat: None, insertion_delay: None, insert_once: false, invalidate: false, invalidate_all: false, invalidate_entries_if: false, iterate: false, eviction_listener: None, size_aware: false, entry_api: false, per_key_expiration: false }

Cache, Max Capacity, Clients, Inserts, Reads, Hit Ratio, Duration Secs
Foyer In-memory Cache, 100000, 1, 14858114, 16407702, 9.444, 5.821
Foyer In-memory Cache, 100000, 3, 14859071, 16407702, 9.438, 7.097
Foyer In-memory Cache, 100000, 6, 14860432, 16407702, 9.430, 4.745
Foyer In-memory Cache, 400000, 1, 11714519, 16407702, 28.604, 9.340
Foyer In-memory Cache, 400000, 3, 11716273, 16407702, 28.593, 6.594
Foyer In-memory Cache, 400000, 6, 11717199, 16407702, 28.587, 4.264
Foyer In-memory Cache, 800000, 1, 5791197, 16407702, 64.704, 8.313
Foyer In-memory Cache, 800000, 3, 5788962, 16407702, 64.718, 5.022
Foyer In-memory Cache, 800000, 6, 5783255, 16407702, 64.753, 3.058
cargo build --release -F foyer && ./target/release/mokabench --num-clients 1,3,6
Async runtime: Tokio
Config { trace_file: S3, ttl: None, tti: None, num_clients: Some([1, 3, 6]), repeat: None, insertion_delay: None, insert_once: false, invalidate: false, invalidate_all: false, invalidate_entries_if: false, iterate: false, eviction_listener: None, size_aware: false, entry_api: false, per_key_expiration: false }

Cache, Max Capacity, Clients, Inserts, Reads, Hit Ratio, Duration Secs
Foyer In-memory Cache, 100000, 1, 14861185, 16407702, 9.426, 4.852
Foyer In-memory Cache, 100000, 3, 14858017, 16407702, 9.445, 6.842
Foyer In-memory Cache, 100000, 6, 14859848, 16407702, 9.434, 5.085
Foyer In-memory Cache, 400000, 1, 11715461, 16407702, 28.598, 8.070
Foyer In-memory Cache, 400000, 3, 11715070, 16407702, 28.600, 6.759
Foyer In-memory Cache, 400000, 6, 11714428, 16407702, 28.604, 4.533
Foyer In-memory Cache, 800000, 1, 5787456, 16407702, 64.727, 6.877
Foyer In-memory Cache, 800000, 3, 5788362, 16407702, 64.722, 4.961
Foyer In-memory Cache, 800000, 6, 5788398, 16407702, 64.721, 3.306

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

Attention: Patch coverage is 98.52941% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 80.65%. Comparing base (cefb41f) to head (fbb5d76).

Files Patch % Lines
foyer-memory/src/eviction/lfu.rs 97.72% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #452      +/-   ##
==========================================
+ Coverage   80.22%   80.65%   +0.43%     
==========================================
  Files          57       57              
  Lines        7774     7797      +23     
==========================================
+ Hits         6237     6289      +52     
+ Misses       1537     1508      -29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant