/usr/share/pyshared/axiom/benchmarks/testwriter.py is in python-axiom 0.6.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | import time
import itertools
from testbase import con, cur
BATCH = 500
for num in itertools.count():
for x in range(BATCH):
n = (num * BATCH) + x
cur.execute("insert into foo values (?, ?)",
(n, "string-value-of-"+str(n)))
con.commit()
print num, 'write pass complete', time.ctime()
|