summaryrefslogtreecommitdiff
path: root/test/git/performance/test_odb.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-10-15 12:40:54 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-10-15 12:40:54 +0200
commit13647590f96fb5a22cb60f12c5a70e00065a7f3a (patch)
tree75c5fcd85fe9e655e035bd3cbec10e49071562f1 /test/git/performance/test_odb.py
parent741dfaadf732d4a2a897250c006d5ef3d3cd9f3a (diff)
parent0019d7dc8c72839d238065473a62b137c3c350f5 (diff)
downloadgitpython-13647590f96fb5a22cb60f12c5a70e00065a7f3a.tar.gz
Merge branch 'unicode'
Diffstat (limited to 'test/git/performance/test_odb.py')
-rw-r--r--test/git/performance/test_odb.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/git/performance/test_odb.py b/test/git/performance/test_odb.py
index 23d5b98e..32b70f69 100644
--- a/test/git/performance/test_odb.py
+++ b/test/git/performance/test_odb.py
@@ -49,9 +49,10 @@ class TestObjDBPerformance(TestBigRepoR):
st = time()
nb = 0
too_many = 15000
+ data_bytes = 0
for blob_list in blobs_per_commit:
for blob in blob_list:
- blob.data_stream.read()
+ data_bytes += len(blob.data_stream.read())
# END for each blobsha
nb += len(blob_list)
if nb > too_many:
@@ -59,7 +60,7 @@ class TestObjDBPerformance(TestBigRepoR):
# END for each bloblist
elapsed = time() - st
- print >> sys.stderr, "%s: Retrieved %i blob and their data in %g s ( %f blobs / s )" % (type(repo.odb), nb, elapsed, nb / elapsed)
+ print >> sys.stderr, "%s: Retrieved %i blob (%i KiB) and their data in %g s ( %f blobs / s, %f KiB / s )" % (type(repo.odb), nb, data_bytes/1000, elapsed, nb / elapsed, (data_bytes / 1000) / elapsed)
results[2].append(elapsed)
# END for each repo type