Skip to content

Commit 75e3cc3

Browse files
committed
Read large values stress test - nested reference buffer bug neo4j#201 neo4j#165
1 parent bba8d48 commit 75e3cc3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/performance/stress.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ def run(self):
2323
self.create_nodes()
2424
self.create_index()
2525
self.match_nodes()
26+
self.read_large()
27+
28+
def read_large(self):
29+
for i in range(1, 7):
30+
t0 = time()
31+
with self.driver.session() as session:
32+
try:
33+
session.run("RETURN '{}'".format("x" * (i * 2 ** 20))).consume()
34+
except CypherError:
35+
pass
36+
t1 = time()
37+
stderr.write("Read %d MB in %fs\n" % (i, t1 - t0))
2638

2739
def drop_index(self):
2840
with self.driver.session() as session:

0 commit comments

Comments
 (0)