Skip to content

Commit 8536bb2

Browse files
committed
Updated README and location of __main__
1 parent 819b4d3 commit 8536bb2

File tree

2 files changed

+2
-71
lines changed

2 files changed

+2
-71
lines changed

README.rst

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Neo4j Bolt Driver for Python
44

55
.. code:: python
66
7-
from neo4j.v1.session import GraphDatabase
7+
from neo4j.v1 import GraphDatabase
88
driver = GraphDatabase.driver("bolt://localhost")
99
session = driver.session()
1010
session.run("CREATE (a:Person {name:'Bob'})")
@@ -19,72 +19,3 @@ Command Line
1919
.. code:: bash
2020
2121
python -m neo4j "CREATE (a:Person {name:'Alice'}) RETURN a, labels(a), a.name"
22-
23-
24-
Performance Testing
25-
===================
26-
27-
.. code:: bash
28-
29-
$ python -m neo4j.bench -p 8 "MATCH (a:Person {name:'Alice'}) RETURN a"
30-
Neo4j Benchmarking Tool for Python
31-
Copyright (c) 2002-2015 "Neo Technology,"
32-
Network Engine for Objects in Lund AB [http://neotechnology.com]
33-
Report bugs to nigel@neotechnology.com
34-
35-
Python 3.4.1 (default, Nov 27 2014, 09:15:30)
36-
[GCC 4.8.2]
37-
38-
This machine has 8 processors (linux)
39-
40-
Latency measurements:
41-
42-
INIT <---SEND---> <---RECV---> DONE
43-
overall <--------------------------------------------->
44-
network <--------------------------->
45-
wait <--->
46-
47-
INIT - start of overall request
48-
SEND - period of time over which data is sent
49-
RECV - period of time over which data is received
50-
DONE - end of overall request
51-
52-
Using graph database at bolt://localhost
53-
Warming up... done
54-
55-
------------------------------------------------------
56-
MATCH (a:Person {name:'Alice'}) RETURN a
57-
× 10,000 runs × 8 clients = 2,601.3 tx/s
58-
(80,000 requests in 30.8s)
59-
------------------------------------------------------
60-
percentile | overall | network | wait
61-
------------|-------------|-------------|-------------
62-
0.0% | 1,370.2µs | 199.0µs | 9.9µs
63-
10.0% | 2,673.3µs | 244.6µs | 18.3µs
64-
20.0% | 2,750.5µs | 270.2µs | 19.9µs
65-
30.0% | 2,790.2µs | 319.1µs | 21.9µs
66-
40.0% | 2,839.1µs | 331.8µs | 180.4µs
67-
50.0% | 2,921.7µs | 343.7µs | 197.1µs
68-
60.0% | 3,039.7µs | 355.8µs | 217.1µs
69-
70.0% | 3,106.4µs | 368.1µs | 283.9µs
70-
80.0% | 3,176.3µs | 382.8µs | 303.4µs
71-
90.0% | 3,334.3µs | 404.0µs | 329.8µs
72-
95.0% | 3,633.0µs | 541.3µs | 396.6µs
73-
98.0% | 4,888.2µs | 1,565.6µs | 954.5µs
74-
99.0% | 5,767.4µs | 2,585.5µs | 2,049.7µs
75-
99.5% | 6,810.7µs | 3,172.1µs | 2,846.9µs
76-
99.9% | 10,824.5µs | 5,846.7µs | 4,604.3µs
77-
100.0% | 29,740.3µs | 25,134.4µs | 25,065.5µs
78-
79-
80-
Profiling
81-
=========
82-
83-
.. code:: bash
84-
85-
./runprofile.sh "RETURN 1" | less
86-
87-
88-
.. code:: bash
89-
./runprofile.sh "RETURN 1" 20000 | less
90-

neo4j/v1/__main__.py renamed to neo4j/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from json import loads as json_loads
2727
from sys import stdout, stderr
2828

29-
from .session import GraphDatabase, CypherError
29+
from .v1.session import GraphDatabase, CypherError
3030

3131

3232
class ColourFormatter(logging.Formatter):

0 commit comments

Comments
 (0)