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 | |
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')
-rw-r--r-- | test/git/performance/test_commit.py | 2 | ||||
-rw-r--r-- | test/git/performance/test_streams.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/git/performance/test_commit.py b/test/git/performance/test_commit.py index 2398c93d..bca3ad8b 100644 --- a/test/git/performance/test_commit.py +++ b/test/git/performance/test_commit.py @@ -72,7 +72,7 @@ class TestPerformance(TestBigRepoRW): assert_commit_serialization(self.gitrwrepo, self.head_sha_2k, True) rwrepo = self.gitrwrepo - make_object = rwrepo.odb.to_object + make_object = rwrepo.odb.store # direct serialization - deserialization can be tested afterwards # serialization is probably limited on IO hc = rwrepo.commit(self.head_sha_2k) 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) |