Skip to content

Commit

Permalink
Added a performance test a single line UDF
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Oct 16, 2024
1 parent 78c5a28 commit f70a8ec
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,20 @@ TEST(JavaContainerPerformance, large_inline_java_udf_test) {
JavaVMTest vm(script_code);
}

TEST(JavaContainerPerformance, large_inline_single_line_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++) {
for (uint32_t idxWord(0); idxWord < NumInlineJavaWordsPerLine; idxWord++)
script_code.append("somecode ");

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


0 comments on commit f70a8ec

Please sign in to comment.