Rev 2480: use 10x the directories to make the timing to fall in the 1s mark in http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/dirstate_pyrex

John Arbash Meinel john at arbash-meinel.com
Fri May 4 00:45:46 BST 2007


At http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/dirstate_pyrex

------------------------------------------------------------
revno: 2480
revision-id: john at arbash-meinel.com-20070503234531-xt0tpuxwqgjn10l8
parent: john at arbash-meinel.com-20070503234105-xwv4fcxn26d97d6u
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: dirstate_pyrex
timestamp: Thu 2007-05-03 18:45:31 -0500
message:
  use 10x the directories to make the timing to fall in the 1s mark
modified:
  bzrlib/benchmarks/bench_dirstate.py bench_dirstate.py-20070503203500-gs0pz6zkvjpq9l2x-1
-------------- next part --------------
=== modified file 'bzrlib/benchmarks/bench_dirstate.py'
--- a/bzrlib/benchmarks/bench_dirstate.py	2007-05-03 23:35:49 +0000
+++ b/bzrlib/benchmarks/bench_dirstate.py	2007-05-03 23:45:31 +0000
@@ -82,9 +82,9 @@
             state.unlock()
         return state
 
-    def build_1k_dirstate_dirs(self):
-        """Build a DirState file with 1k directories"""
-        return self.build_helper([(10, 0), (10, 0), (10, 1)])
+    def build_10k_dirstate_dirs(self):
+        """Build a DirState file with 10k directories"""
+        return self.build_helper([(10, 0), (10, 0), (10, 0), (10, 1)])
 
     def build_20k_dirstate(self):
         """Build a DirState file with 20k records.
@@ -162,7 +162,7 @@
         self.assertEqualDiff(expected_str, offset_str)
 
     def test_bisect_dirblock(self):
-        state = self.build_1k_dirstate_dirs()
+        state = self.build_10k_dirstate_dirs()
         state.lock_read()
         try:
             self.setup_paths_and_offsets(state)
@@ -172,7 +172,7 @@
             state.unlock()
 
     def test_bisect_dirblock_cached(self):
-        state = self.build_1k_dirstate_dirs()
+        state = self.build_10k_dirstate_dirs()
         state.lock_read()
         try:
             self.setup_paths_and_offsets(state)
@@ -184,7 +184,7 @@
 
     def test_bisect_dirblock_compiled(self):
         self.requireFeature(CompiledDirstateHelpersFeature)
-        state = self.build_1k_dirstate_dirs()
+        state = self.build_10k_dirstate_dirs()
         state.lock_read()
         try:
             self.setup_paths_and_offsets(state)
@@ -195,7 +195,7 @@
 
     def test_bisect_dirblock_compiled_cached(self):
         self.requireFeature(CompiledDirstateHelpersFeature)
-        state = self.build_1k_dirstate_dirs()
+        state = self.build_10k_dirstate_dirs()
         state.lock_read()
         try:
             self.setup_paths_and_offsets(state)



More information about the bazaar-commits mailing list