-
Notifications
You must be signed in to change notification settings - Fork 71
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
New benchmarks in java #222
base: java_benchmarks_support
Are you sure you want to change the base?
New benchmarks in java #222
Conversation
…erless-benchmarks into java_benchmarks_support
out_storage.json
Outdated
@@ -0,0 +1,10 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also should be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right! Deleted. Thanks. Should files like these be added to .gitignore or not? I am asking to understand best practices."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add the entire .vscode
directory to the gitignore :-)
@@ -168,7 +168,7 @@ def build_base_image( | |||
) | |||
|
|||
for fn in os.listdir(directory): | |||
if fn not in ("index.js", "__main__.py", "Main.java"): | |||
if fn not in ("index.js", "__main__.py"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the .java fil deleted now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because Main.java is now in the same directory as the other files. They are all part of a Maven project and have been packaged into a fat jar for deployment on OpenWhisk. For functions larger than 48 MB, I think I will need to add Main.java again.
jsonObject.put("compute_time", computeTime); | ||
jsonObject.put("is_cold", isCold); | ||
jsonObject.put("result", result); | ||
jsonResult.addProperty("begin", formattedBegin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious - what's the difference here :-)?
@@ -0,0 +1,6 @@ | |||
{ | |||
"timeout": 60, | |||
"memory": 24, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't appear to be a correct value - is it really just 24 MB?
@mahlashrifi Few comments in addition to the review :-)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hi,
I hope you are doing well. I have made a pull request to clarify which parts are unnecessary and which parts need to be added.
This pull request contains three components:
1- Completion of Java support for benchmarking on OpenWhisk (when the fat jar, including wrapper and source code, is less than 48 MB).
The initial commits are included in this pull request.
2- Two new benchmarks:
Training function of TeaStore
CheckLogin benchmark of TeaStore
3- Six additional benchmarks that are essentially variations of CheckLogin with different dependencies. I noticed something called "payload" in the results of running SeBS benchmarks, but I wasn’t sure how to use it. These six benchmarks were meant to serve as examples for using our implementation. My intention was to test whether the jar file size directly affects the delay in running serverless functions, but I found no significant impact.
The attached diagram and summarized information provide further details. I believe that if we can set the payload in SeBS, these additional codes can be omitted.