My bot reads stats through API from all wikis. Fragment of code (C#):
foreach (var c in codes)
{
apiout = WebClient.DownloadString("https://" + c + ".wikipedia.org/w/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics");
When I run it from my PC (Win 8.1, Visual Studio), it works fast, with an approximate rate 1-2 requests per second. But when I run it through mono from Labs, it takes 5-6 seconds for every request. If I add `Console.WriteLine(DateTime.Now);` to the loop, it displays
10/1/2016 2:27:00 AM
10/1/2016 2:27:05 AM
10/1/2016 2:27:11 AM
10/1/2016 2:27:17 AM
10/1/2016 2:27:22 AM
10/1/2016 2:27:28 AM
10/1/2016 2:27:34 AM
etc.
I have many other C# bots that run with mono from Labs, and none of them have this lag. When I run wget with this urls from Labs, it works fast. When my acquaintance run this program with the same version of mono on linux, it runs without this lags. When I use asynchronous http client, lags remains.