##// END OF EJS Templates
test: pin the number of CPU for issue4074 tests...
marmoute -
r44837:60bc043d stable
parent child Browse files
Show More
@@ -1,29 +1,29 b''
1 1 #require no-pure
2 2
3 3 A script to generate nasty diff worst-case scenarios:
4 4
5 5 $ cat > s.py <<EOF
6 6 > import random
7 7 > for x in range(100000):
8 8 > print
9 9 > if random.randint(0, 100) >= 50:
10 10 > x += 1
11 11 > print(hex(x))
12 12 > EOF
13 13
14 14 $ hg init a
15 15 $ cd a
16 16
17 17 Check in a big file:
18 18
19 19 $ "$PYTHON" ../s.py > a
20 20 $ hg ci -qAm0
21 21
22 22 Modify it:
23 23
24 24 $ "$PYTHON" ../s.py > a
25 25
26 26 Time a check-in, should never take more than 10 seconds user time:
27 27
28 $ hg ci --time -m1
28 $ hg ci --time -m1 --config worker.enabled=no
29 29 time: real .* secs .user [0-9][.].* sys .* (re)
General Comments 0
You need to be logged in to leave comments. Login now