Rev 2526: Add a benchmark timing how long it takes to add ~20k entries to a DirState object. in http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/dirstate_pyrex
John Arbash Meinel
john at arbash-meinel.com
Mon May 7 22:43:06 BST 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/dirstate_pyrex
------------------------------------------------------------
revno: 2526
revision-id: john at arbash-meinel.com-20070507214233-czz6gaimsje4qka6
parent: john at arbash-meinel.com-20070507213645-le9y48efqghhes86
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: dirstate_pyrex
timestamp: Mon 2007-05-07 16:42:33 -0500
message:
Add a benchmark timing how long it takes to add ~20k entries to a DirState object.
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-07 21:36:45 +0000
+++ b/bzrlib/benchmarks/bench_dirstate.py 2007-05-07 21:42:33 +0000
@@ -123,6 +123,11 @@
state.unlock()
return state
+ def test_add_20k_entries(self):
+ """Time how long it takes to add lots of entries."""
+ state = self.time(self.build_helper, [(10, 0), (10, 0), (10, 20)])
+ state.unlock()
+
def test_build_20k_dirstate(self):
state = self.time(self.build_20k_dirstate)
state.lock_read()
More information about the bazaar-commits
mailing list