[Pkg-bazaar-commits] ./bzr/unstable r92: more performance measurement

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:44:18 UTC 2009


------------------------------------------------------------
revno: 92
committer: mbp at sourcefrog.net
timestamp: Fri 2005-03-25 14:47:11 +1100
message:
  more performance measurement
modified:
  NEWS
  notes/performance.txt
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2005-03-24 01:13:50 +0000
+++ b/NEWS	2005-03-25 03:47:11 +0000
@@ -6,6 +6,9 @@
 
     * Can now say "bzr help COMMAND" for more detailed help.
 
+    * Less file flushing and faster performance when writing logs and
+      committing to stores.
+
   PORTABILITY:
 
     * Include a subset of ElementTree-1.2.20040618 to make

=== modified file 'notes/performance.txt'
--- a/notes/performance.txt	2005-03-25 03:24:47 +0000
+++ b/notes/performance.txt	2005-03-25 03:47:11 +0000
@@ -218,4 +218,43 @@
 bzr status  5.23s user 0.42s system 97% cpu 5.780 total
 
 which is mostly opening, stating and reading files, as it should be.
-Still a few too many stat calls.
\ No newline at end of file
+Still a few too many stat calls.
+
+Now fixed up handling of root directory.
+
+Without flushing everything to disk as it goes into the store:
+
+mbp at hope% bzr commit -m 'import linux 2.4.19'
+bzr commit -m 'import linux 2.4.19'  8.15s user 2.09s system 53% cpu 19.295 total
+
+mbp at hope% time bzr diff
+bzr diff  5.80s user 0.52s system 69% cpu 9.128 total
+mbp at hope% time bzr status
+bzr status  5.64s user 0.43s system 68% cpu 8.848 total
+
+patch -p1 < ../linux.pkg/patch-2.4.20  1.67s user 0.96s system 90% cpu 2.905 total
+
+The diff changes 3462 files according to diffstat.
+
+branch format: Bazaar-NG branch, format 0.0.4
+
+in the working tree:
+   8674 unchanged
+   2463 modified
+    818 added
+    229 removed
+      0 renamed
+      0 unknown
+      4 ignored
+    614 versioned subdirectories
+
+That is, 3510 entries have changed, but there are 48 changed
+directories so the count is exactly right!
+
+bzr commit -v -m 'import 2.4.20'  8.23s user 1.09s system 48% cpu 19.411 total
+
+Kind of strange that this takes as much time as committing the whole
+thing; I suppose it has to read every file.  
+
+This shows many files as being renamed; I don't know why that would
+be.



More information about the Pkg-bazaar-commits mailing list