From f70a8ec5f2341d290fd0131d9cec151fc3ae037a Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:45:43 -0300 Subject: [PATCH] Added a performance test a single line UDF --- .../test/cpp/javacontainer_perf_test.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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); +} +