Hello,
We are upgrading in our code the proton version from 0.27.0 to 0.29.0.
While running our unit tests, we found a considerable performance
regression.
We were able to reproduce the regression in a very simple use case.
Please find the code attached.
This test takes 1 ms in the version 0.27.0 and 0.28.0 but it takes 73 ms in
0.29.0 .
Do you know what might be the cause?
We will try to investigate in parallel from our side, too.
Thanks,
Rabih & Ali
#include <proton/container.hpp>
#include <proton/messaging_handler.hpp>
#include <proton/connection_options.hpp>
#include <iostream>
class handler : public proton::messaging_handler {
public:
handler(const std::string& u) : url(u) {}
private:
void on_container_start(proton::container& c)override
{
c.connect(url, proton::connection_options().sasl_enabled(false));
}
void on_connection_open(proton::connection& c)override
{
c.close();
}
std::string url;
};
int main()
{
try
{
handler h("127.0.0.1:1234"); //wrong port
proton::container(h).run();
}
catch (std::exception e)
{
std::cout << "Exception thrown at the client side: " << e.what();
}
return 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]