diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-04 14:41:15 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-04 14:41:15 +0200 |
commit | a1e80445ad5cb6da4c0070d7cb8af89da3b0803b (patch) | |
tree | ff94069b9d49d5a06576a0838a1bbde1e8c992ae /test/git/performance/test_streams.py | |
parent | b01ca6a3e4ae9d944d799743c8ff774e2a7a82b6 (diff) | |
download | gitpython-a1e80445ad5cb6da4c0070d7cb8af89da3b0803b.tar.gz |
initial version of new odb design to facilitate a channel based multi-threading implementation of all odb functions
Diffstat (limited to 'test/git/performance/test_streams.py')
-rw-r--r-- | test/git/performance/test_streams.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/git/performance/test_streams.py b/test/git/performance/test_streams.py index d31bee14..30fd8048 100644 --- a/test/git/performance/test_streams.py +++ b/test/git/performance/test_streams.py @@ -51,7 +51,7 @@ class TestObjDBPerformance(TestBigRepoR): # writing - due to the compression it will seem faster than it is st = time() - sha = ldb.to_object('blob', size, stream) + sha = ldb.store('blob', size, stream) elapsed_add = time() - st assert ldb.has_object(sha) db_file = ldb.readable_db_object_path(sha) @@ -63,7 +63,7 @@ class TestObjDBPerformance(TestBigRepoR): # reading all at once st = time() - type, size, shastream = ldb.object(sha) + type, size, shastream = ldbstreamsha) shadata = shastream.read() elapsed_readall = time() - st @@ -76,7 +76,7 @@ class TestObjDBPerformance(TestBigRepoR): cs = 512*1000 chunks = list() st = time() - type, size, shastream = ldb.object(sha) + type, size, shastream = ldbstreamsha) while True: data = shastream.read(cs) chunks.append(data) |