Open thekid opened 6 years ago
Via https://github.com/xp-forge/neo4j/pull/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!
The code reads CURL is the slower one, so favor SSLSockets - hrm, seems no longer to be true 😄
CURL is the slower one, so favor SSLSockets
Using Connection: keep-alive, I can get that figure down to 0.185 seconds, 1776.46 kB 👍
Connection: keep-alive
0.185 seconds, 1776.46 kB
Via https://github.com/xp-forge/neo4j/pull/3
Clearly, either the CURL transport should be preferred or the socket implementation's performance should be improved upon!