~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/weavebench.py

  • Committer: Martin Pool
  • Date: 2005-07-18 11:23:40 UTC
  • Revision ID: mbp@sourcefrog.net-20050718112340-4ffbfa3624bb6ef3
- weavebench should set random seed to make it reproducible

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from bzrlib.weave import Weave
24
24
from bzrlib.weavefile import write_weave
25
25
from bzrlib.progress import ProgressBar
26
 
from random import randrange, randint
 
26
from random import randrange, randint, seed
27
27
import tempfile
28
28
import hotshot, hotshot.stats
29
29
import sys
31
31
WEAVE_NAME = "bench.weave"
32
32
NUM_REVS = 2000
33
33
 
 
34
seed(0)
 
35
 
34
36
def build():
35
37
    pb = ProgressBar(show_eta=False)
36
38