Rev 2482: Fix the benchmarks to test what I thought I was testing earlier in http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/dirstate_pyrex

John Arbash Meinel john at arbash-meinel.com
Fri May 4 05:13:14 BST 2007


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

------------------------------------------------------------
revno: 2482
revision-id: john at arbash-meinel.com-20070504041242-lnhinwkv7wvsejg0
parent: john at arbash-meinel.com-20070504035829-orbif7nnkim9md1t
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: dirstate_pyrex
timestamp: Thu 2007-05-03 23:12:42 -0500
message:
  Fix the benchmarks to test what I thought I was testing earlier
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-04 03:58:29 +0000
+++ b/bzrlib/benchmarks/bench_dirstate.py	2007-05-04 04:12:42 +0000
@@ -173,23 +173,24 @@
 
     def test_bisect_dirblock_compiled(self):
         self.requireFeature(CompiledDirstateHelpersFeature)
+        from bzrlib.compiled.dirstate_helpers import bisect_dirblock
         state = self.build_10k_dirstate_dirs()
         state.lock_read()
         try:
             self.setup_paths_and_offsets(state)
-            offsets = self.time(self.do_bisect_list, dirstate.bisect_dirblock)
+            offsets = self.time(self.do_bisect_list, bisect_dirblock)
             self.checkOffsets(offsets)
         finally:
             state.unlock()
 
     def test_bisect_dirblock_compiled_cached(self):
         self.requireFeature(CompiledDirstateHelpersFeature)
+        from bzrlib.compiled.dirstate_helpers import bisect_dirblock
         state = self.build_10k_dirstate_dirs()
         state.lock_read()
         try:
             self.setup_paths_and_offsets(state)
-            offsets = self.time(self.do_bisect_list_cached,
-                                dirstate.bisect_dirblock)
+            offsets = self.time(self.do_bisect_list_cached, bisect_dirblock)
             self.checkOffsets(offsets)
         finally:
             state.unlock()



More information about the bazaar-commits mailing list