Stress-Test the Mercurial revlog; was: Hash collision
Arne Babenhauserheide
arne_bab at web.de
Thu Apr 30 08:25:28 CDT 2009
Am Mittwoch 29 April 2009 20:29:55 schrieb Bill Barry:
> Brian Mearns wrote:
> > Thanks for the thorough feedback. I'll set up a script to commit every
> > second, and once the age of the Universe has reached about 10^31 times
> > what it is now, I should get my moment in the sun!
>
> I think it'd actually be quite humorous if someone wrote a script that
> did something like this:
...
> and then ran it as a cronjob every second against some centralized repo
> from a hundred machines or so.
This idea kinda gripped me, so now heres the distributed hg burner :)
- http://bitbucket.org/ArneBab/distributed_hg_burner/
Care to join me in stress-testing my local Mecurial installation? It's just
three simple steps:
$ hg clone http://bitbucket.org/ArneBab/distributed_hg_burner/
$ cd distributed_hg_burner
$ python burn.py
It does at most 2 commits per second, and it uses a python script to avoid
loading python for each run - mercurial.dispatch.dispatch(["command"]) is
great!
Race conditions will only lead to bigger pushes (first push aborts, then it
pulls, merges and tries to push again - that's directly from Brians script
suggestion), so they should create no problem.
If you want to stop it, you'll need to use ctrl-c, since I just use a while
loop instead of a cron job :)
I'd be glad to see you in the hg burner log, soon!
Arne
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
- singing a part of the history of free software -
http://infinite-hands.draketo.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20090430/3b0021b9/attachment.pgp
More information about the Mercurial
mailing list