Same for me on Ubuntu 16.04: 40 seconds vs 0!
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
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
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
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
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.