diff --git a/exaudfclient/base/javacontainer/test/cpp/javacontainer_perf_test.cc b/exaudfclient/base/javacontainer/test/cpp/javacontainer_perf_test.cc index 8321b285..9e051d5c 100644 --- a/exaudfclient/base/javacontainer/test/cpp/javacontainer_perf_test.cc +++ b/exaudfclient/base/javacontainer/test/cpp/javacontainer_perf_test.cc @@ -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); +} +