Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance with CURL #21

Open
thekid opened this issue Oct 3, 2017 · 2 comments
Open

Performance with CURL #21

thekid opened this issue Oct 3, 2017 · 2 comments

Comments

@thekid
Copy link
Member

thekid commented Oct 3, 2017

Via xp-forge/neo4j#3

# With Sockets
$ xp test.script.php xp-forge/neo4j http://discovery:[email protected]: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:[email protected]: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
Copy link
Member Author

thekid commented Oct 3, 2017

The code reads CURL is the slower one, so favor SSLSockets - hrm, seems no longer to be true 😄

@thekid
Copy link
Member Author

thekid commented Oct 3, 2017

Using Connection: keep-alive, I can get that figure down to 0.185 seconds, 1776.46 kB 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant