Performance with CURL
thekid opened this issue · 2 comments
thekid commented
Via xp-forge/neo4j#3
# With Sockets
$ xp test.script.php xp-forge/neo4j http://discovery:...@127.0.0.1:7474
[xp-forge/neo4j, http * 100] returns << [:var]
0.601 seconds, 1770.47 kB
# With CURL
$ xp test.script.php xp-forge/neo4j http://discovery:...@127.0.0.1:7474
[xp-forge/neo4j, http * 100] returns << [:var]
0.326 seconds, 1754.30 kB
Clearly, either the CURL transport should be preferred or the socket implementation's performance should be improved upon!
thekid commented
The code reads CURL is the slower one, so favor SSLSockets
- hrm, seems no longer to be true 😄
thekid commented
Using Connection: keep-alive
, I can get that figure down to 0.185 seconds, 1776.46 kB
👍