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

fix(ledger): fuzz testing #452

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

fix(ledger): fuzz testing #452

wants to merge 2 commits into from

Conversation

dadepo
Copy link
Contributor

@dadepo dadepo commented Dec 18, 2024

No description provided.

@dadepo
Copy link
Contributor Author

dadepo commented Dec 19, 2024

$ zig build fuzz -- ledger_rocksdb 10 1_000_000 > output.txt 2>&1
$ grep -c 'Put actions' output.txt
890
$ grep -c 'Delete actions' output.txt
889
$ grep -c 'Delete Files in Range actions' output.txt
925
$ grep -c 'getBytes actions' output.txt
10
$ grep -c 'get actions' output.txt
11
$ grep -c 'count actions' output.txt
997
$ grep -c 'contains actions' output.txt
11
$ grep -c 'Batch actions' output.txt
904

get, getBytes and contains are order of magnitude slower. Need to investigate

Update: Only running the get and getBytes leads to

$ grep -c 'get actions' output.txt
988
$ grep -c 'getBytes actions' output.txt
978

Update: This is related to try batch.deleteRange(cf1, start, end);. It seems deleteRange call negatively impacts the get calls. This would be investigated in a follow up PR.

@dadepo dadepo marked this pull request as ready for review December 20, 2024 17:13
@dadepo dadepo force-pushed the dade/ledger-fuzz-test branch from bcf058d to 06644b4 Compare December 20, 2024 17:20
@dadepo dadepo requested a review from dnut December 20, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

1 participant