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

How can I build a non-debug library for benchmarks? #305

Open
rodesai opened this issue Nov 26, 2023 · 3 comments
Open

How can I build a non-debug library for benchmarks? #305

rodesai opened this issue Nov 26, 2023 · 3 comments

Comments

@rodesai
Copy link

rodesai commented Nov 26, 2023

I want to try to build a non-debug version of rocksdb-cloud so I can run db_bench against it and use it when perf testing in another project. Are there any instructions on how to do this? I believe if I just run make all I get a debug version, which is going to be artificially slow. If I set DEBUG_LEVEL=0 then I'm getting lots of errors that I have to hack around related to TEST_ prefixed methods not being defined.

@seckcoder
Copy link

@rodesai
Copy link
Author

rodesai commented Nov 30, 2023

Thanks! Also, do you guys have a tool for benchmarking rocksdb-cloud? I don't think db_bench is meant for rocksdb-cloud, as it opens a regular DB.

@seckcoder
Copy link

db_bench in rocksdb-cloud repo has been updated to work with aws env: https://github.com/rockset/rocksdb-cloud/blob/2ad9544/tools/db_bench_tool.cc#L1704

You need to compile with USE_AWS=1. Also, when running db_bench, you need to pass related access credentials and set env_uri to s3:// (e.g, https://github.com/rockset/rocksdb-cloud/blob/master/cloud/benchmarks/bulkload_seq.sh).

I believe @dhruba has done this in the past. But be aware that Rockset internally is not actively using db_bench. Most of our benchmarks are done against Rockset instead of rocksdb-cloud.

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

No branches or pull requests

2 participants