source:
branches/numpy_misc/tools/memlog/test.py
@
7244
Last change on this file since 7244 was 6696, checked in by , 16 years ago | |
---|---|
File size: 281 bytes |
Line | |
---|---|
1 | # test program - does nothing, but lasts 5 seconds. |
2 | |
3 | import time |
4 | |
5 | LOOPS=20 |
6 | |
7 | result = [] |
8 | for i in range(LOOPS): |
9 | x = '*'*1000 |
10 | y = x*1000 |
11 | z = y*100 |
12 | result.append(z) |
13 | time.sleep(1) |
14 | |
15 | for i in range(LOOPS): |
16 | result.pop() |
17 | time.sleep(1) |
18 | |
19 | del result |
20 | time.sleep(1) |
Note: See TracBrowser
for help on using the repository browser.