This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch next_abi_benchmarks
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git

commit 6a5501fcce07fef68eb78bd14fa4c466b9e8dce4
Author: Stephen Webb <[email protected]>
AuthorDate: Thu May 14 15:38:04 2026 +1000

    Support benchmarks in the next ABI version
---
 src/test/cpp/benchmark/benchmark.cpp | 26 +++++++++-----------------
 1 file changed, 9 insertions(+), 17 deletions(-)

diff --git a/src/test/cpp/benchmark/benchmark.cpp 
b/src/test/cpp/benchmark/benchmark.cpp
index 15b6263c..b6e62f84 100644
--- a/src/test/cpp/benchmark/benchmark.cpp
+++ b/src/test/cpp/benchmark/benchmark.cpp
@@ -46,7 +46,7 @@ public:
        void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override
        {
                LogString buf;
-               m_priv->layout->format(buf, event, p);
+               m_priv->layout->format(buf, event);
        }
 
        void setOption(const LogString& option, const LogString& value) override
@@ -64,8 +64,7 @@ public:
                setFile(tempDir + LOG4CXX_STR("/") + 
LOG4CXX_STR("benchmark.log"));
                setAppend(false);
                setBufferedIO(buffered);
-               helpers::Pool p;
-               activateOptions(p);
+               activateOptions();
        }
 };
 
@@ -79,8 +78,7 @@ public:
                setFile(tempDir + LOG4CXX_STR("/") + 
LOG4CXX_STR("benchmark.json"));
                setAppend(false);
                setBufferedIO(true);
-               helpers::Pool p;
-               activateOptions(p);
+               activateOptions();
        }
 };
 
@@ -94,8 +92,7 @@ public:
                setLayout(std::make_shared<JSONLayout>());
                setRemoteHost(LOG4CXX_STR("localhost"));
                setPort(5170);
-               helpers::Pool p;
-               activateOptions(p);
+               activateOptions();
        }
 };
 #endif
@@ -113,8 +110,7 @@ public:
                setRollingPolicy(policy);
                setFile(tempDir + LOG4CXX_STR("/") + 
LOG4CXX_STR("multiprocess.log"));
                setBufferedIO(true);
-               helpers::Pool p;
-               activateOptions(p);
+               activateOptions();
        }
 };
 #endif
@@ -229,8 +225,7 @@ public: // Class methods
                        result->setLevel(Level::getInfo());
                        auto writer = 
std::make_shared<BenchmarkFileAppender>(std::make_shared<PatternLayout>(LOG4CXX_STR("%d
 %m%n")));
                        writer->setName(LOG4CXX_STR("FileAppender"));
-                       helpers::Pool p;
-                       writer->activateOptions(p);
+                       writer->activateOptions();
                        result->addAppender(writer);
                }
                return result;
@@ -249,8 +244,7 @@ public: // Class methods
                        auto writer = 
std::make_shared<BenchmarkJSONFileAppender>();
                        writer->setName(LOG4CXX_STR("JSONFileAppender"));
                        writer->setBufferedIO(true);
-                       helpers::Pool p;
-                       writer->activateOptions(p);
+                       writer->activateOptions();
                        result->addAppender(writer);
                }
                return result;
@@ -268,8 +262,7 @@ public: // Class methods
                        result->setAdditivity(false);
                        result->setLevel(Level::getInfo());
                        auto writer = 
std::make_shared<BenchmarkFluentbitAppender>();
-                       helpers::Pool p;
-                       writer->activateOptions(p);
+                       writer->activateOptions();
                        result->addAppender(writer);
                }
                return result;
@@ -289,8 +282,7 @@ public: // Class methods
                        result->setLevel(Level::getInfo());
                        auto writer = 
std::make_shared<BenchmarkMultiprocessFileAppender>(std::make_shared<PatternLayout>(LOG4CXX_STR("%d
 %m%n")));
                        
writer->setName(LOG4CXX_STR("MultiprocessFileAppender"));
-                       helpers::Pool p;
-                       writer->activateOptions(p);
+                       writer->activateOptions();
                        result->addAppender(writer);
                }
                return result;

Reply via email to