by jakewins · 8y ago · 0 comments
https://github.com/weinberger/nosql-tests/blob/master/arango...
Except Neo, which is given a single connection to work with :(
https://github.com/weinberger/nosql-tests/blob/master/neo4j/...
When I modify it locally to just set {maxConnectionPoolSize: 25}, like how the other databases are set up, I get roughly an order better performance. neighbors2 went from 0.0226ms to 0.0068ms, for instance. Single write sync went from 3.36415ms to 0.77549ms avg/op..
Benchmarking is hard!
Thanks again for helping us to improve the benchmark and creating fair conditions for all products tested!
Did you read the appendix?
"We used a TCP/IP connection pool of up to 25 connections, whenever the driver permitted this. All drivers seem to support this connection pooling, except Neo4j. We sent instead twenty-five requests via NodeJS to Neo4j."
Just to avoid unfair conditions now, if connection pooling is possible with the neojs driver, then you would have to configure the benchmark scripts to not send 25 requests via Node as well.
We tricked ourselves with such stuff when preparing the benchmark.
A single session object is backed by a single connection, so even though you "send" 25 requests via async.eachLimit, the result is that they are serialized over the single connection.
http://neo4j.com/docs/developer-manual/current/drivers/clien...