Re: [RFC]: What's wrong with me or with httpclient :-)

2017-02-10 Thread andrea
Same for me on Ubuntu 16.04: 40 seconds vs 0!

Re: [RFC]: What's wrong with me or with httpclient :-)

2017-02-10 Thread vega
Interesting. I got the results above on Ububtu 16.04. Rechecked on Windows 8. The problem is that SyncClient test is so slow only on linux! And it's faster then DeprecatedAPI on windows. Debugging shows that it hangs for some time here: [https://github.com/nim-lang/Nim/blob/devel/lib/pure/httpc

Re: [RFC]: What's wrong with me or with httpclient :-)

2017-02-10 Thread jlp765
on win7 64 and `Nim Compiler Version 0.16.1 (2017-02-09) [Windows: amd64]` `TEST[SyncClient]: Processed 1000 requests in 1 seconds!` or 0 seconds

Re: [RFC]: What's wrong with me or with httpclient :-)

2017-02-09 Thread filcuc
TEST[SyncClient]: Processed 1000 requests in 43 seconds! TEST[DeprecatedAPI]: Processed 1000 requests in 0 seconds! TEST[ApacheBenchmark]: Processed 1000 requests in 0 seconds! Same results here..Sync is very slow

[RFC]: What's wrong with me or with httpclient :-)

2017-02-09 Thread vega
I don't want to file an issue, because maybe the problem is in my code. Below is the minimal test (also available [as gist](https://gist.github.com/vegansk/8d4126fa5205f1d86145891b02467f46)). So, the problem is that if I use deprecated API from httpclient, I get maximum performance while produc

Re: [RFC]: What's wrong with me or with httpclient :-)

2017-02-09 Thread mashingan
I ran your code and I got consistent result with SyncClient faster than DeprecatedApi. I've ran it in Windows 10 (gcc-mingw64, withouth ab), and Linux subsystem, all results are consistent.