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

#982: Added a performance test for ScriptOptions parser for a single line UDF #461

Merged
merged 4 commits into from
Oct 17, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,35 @@ TEST(JavaContainerPerformance, large_inline_java_udf_test) {
JavaVMTest vm(script_code);
}

TEST(JavaContainerPerformance, large_inline_single_line_full_java_udf_test) {
std::string script_code =
"%jvmoption option1=abc;"
"%jvmoption option2=def;"
"class JVMOPTION_TEST_WITH_SPACE {"
"static void run(ExaMetadata exa, ExaIterator ctx) throws Exception {";

for (uint32_t idxLine(0); idxLine < NumInlineJavaLines; idxLine++) {
Nicoretti marked this conversation as resolved.
Show resolved Hide resolved
for (uint32_t idxWord(0); idxWord < NumInlineJavaWordsPerLine; idxWord++)
Nicoretti marked this conversation as resolved.
Show resolved Hide resolved
script_code.append("somecode ");

}
script_code.append(" }}");
JavaVMTest vm(script_code);
}

TEST(JavaContainerPerformance, large_inline_single_line_slim_java_udf_test) {
std::string script_code =
"%jvmoption option1=abc;"
"%jvmoption option2=def;"
"class JVMOPTION_TEST_WITH_SPACE {"
"static void run(ExaMetadata exa, ExaIterator ctx) throws Exception {";

for (uint32_t idxLine(0); idxLine < NumInlineJavaLines / 10; idxLine++) {
for (uint32_t idxWord(0); idxWord < NumInlineJavaWordsPerLine / 10; idxWord++)
script_code.append("someco%de ; \\t");

}
script_code.append(" }}");
JavaVMTest vm(script_code);
}

Loading