18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Performance problem in Sahi
I have discovered a few performance problems in Sahi, especially when using it against large GWT applications. I am working out some fixes, will update you later.
Comments
try
{
if (host.equals("sahi.example.com"))
{
return false;
}
String hostAddress = InetAddress.getByName(host).getHostAddress();
return hostAddress.equals("127.0.0.1") || hostAddress.equals(InetAddress.getLocalHost().getHostAddress());
}
catch (Exception e)
{
return false;
}
But I think the bast way to do this is to define the sahi.example.com as a constant so that all codes refer to this domain can point to a single version. This will speed up page loading quite a bit.
Thanks for the inputs and do let us know what you find. We are ourselves looking for ways to speed up Sahi further, and your findings will be very valuable to us.
ProxyProcessor.isHostTheProxy() is called only for urls which do not have /_s_/ in their urls. All calls to sahi.example.com always have _s_ in their urls so they will never reach ProxyProcessor.isHostTheProxy(). Let us know if you noticed something different.
We are also looking at reducing the number of injected files at the top to reduce round trips.
Do keep us posted.
Thanks and regards,
Narayan
Another slowness is due to the SSL socket connection, I have observed some place you have not used buffered stream for I/O and cause slowness in SSL encryption, also increase the default buffer size can help a lot in this case, I have changed all bufferedstream to use 64K buffer instead of 8K buffer.
The overall speedup is 5 mins vs 20-30secs
Thanks again,
Narayan