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

Added benchmarking capabilities for the mongodb benchmark #23

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

Conversation

anish-palakurthi
Copy link

@anish-palakurthi anish-palakurthi commented Nov 17, 2024

Run

make docker
make install-mongodb
make benchmark-mongodb

@dataclass(frozen=True)
class BenchmarkConfig(ConfigBase):

recordCount: int = 1000000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use lower snake case instead of camel case, i.e. record_count
note: Pascal case is fine for class names as you have done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, after you make the above fix, please run make defaults to generate a new defaults.yaml and then commit those changes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it does not look like you use these configuration options at all anywhere
Please use them to configure the mongodb benchmark

@@ -0,0 +1,182 @@
#!/bin/bash

# GAPBS Benchmark Runner
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where did you get this file, or did you write it yourself?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrote it myself

trap cleanup INT

# Run main function
main
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like you have not installed any pre-commit hooks,
please run make hooks and then make pre-commit, fixing any issues that appear -- although that command will fix some of the simpler ones like adding a newline at the end of every file, in those cases simply do git add . && make pre-commit

@@ -0,0 +1,370 @@
#!/bin/bash

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, none of these scripts, if they are kept, should be in the top-level directory of this repo, please move them to a sane place under scripts for now, like scripts/run-benchmarks/*

@patrickkenney9801
Copy link
Collaborator

Please also run make format followed by make lint and fix any issues that appear in the python code

@patrickkenney9801
Copy link
Collaborator

We should probably meet sometime early next week to discuss what all of these scripts do and why they are needed in the codebase

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

Successfully merging this pull request may close these issues.

2 participants